core / io.islandtime.format / NumberStyle

NumberStyle

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) data class NumberStyle

Defines the set of characters that should be used when parsing or formatting numbers.

Constructors

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

<init>

Defines the set of characters that should be used when parsing or formatting numbers.

<init>(zeroDigit: Char, plusSign: List<Char>, minusSign: List<Char>, decimalSeparator: List<Char>)

Properties

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

decimalSeparator

A list of allowed decimal separator characters. The first element will be used when formatting

val decimalSeparator: List<Char>
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

minusSign

A list of allowed minus sign characters. The first element will be used when formatting.

val minusSign: List<Char>
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

plusSign

A list of allowed plus sign characters. The first element will be used when formatting.

val plusSign: List<Char>
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

zeroDigit

The character that represents zero.

val zeroDigit: Char

Companion Object Properties

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)

DEFAULT

A locale-agnostic set of characters, matching those allowed in the date-time formats defined in ISO-8601.

val DEFAULT: NumberStyle