core / io.islandtime.parser / DateTimeParserBuilder / decimalNumber

decimalNumber

(iosArm64, iosX64, jvm, macosX64) abstract fun decimalNumber(wholeLength: IntRange = 1..19, fractionLength: IntRange = 0..9, fractionScale: Int = 9, builder: DecimalNumberParserBuilder.() -> Unit = {}): Unit

Parse a decimal number.

If the minimum fractionLength is zero, a decimal separator isn't required.

Parameters

wholeLength - the number of digits to parse from the whole part, excluding sign

fractionLength - the number of digits to parse from the fraction part

fractionScale - the number of digits to normalize the fraction to -- by default 9, indicating nanoseconds

builder - configure parser behavior