decimalNumber

Parse a decimal number.

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

The characters associated with a decimal separator are controlled by the DateTimeParserSettings. By default, this is '.' or ',' as specified in ISO-8601. The characters may be overridden by using a different NumberStyle.

See also

NumberStyle
Link copied to clipboard

Parameters

builder

configure parser behavior

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

wholeLength

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

abstract fun decimalNumber(wholeLength: IntRange, fractionLength: IntRange, fractionScale: Int, builder: DecimalNumberParserBuilder.() -> Unit)