Companion

Constants and parsers for Decimal.

Properties

Link copied to clipboard

The value 1.

Link copied to clipboard

The value 10.

Link copied to clipboard

The value 0.

Functions

Link copied to clipboard
fun of(value: Int): Decimal
fun of(value: Long): Decimal

Returns a Decimal equal to the integer value.

Link copied to clipboard
fun parse(value: String): Decimal

Parses ordinary decimal text into a Decimal.

Link copied to clipboard
fun parseOrNull(value: String): Decimal?

Parses ordinary decimal text, returning null if the input is malformed, over-precise, or out of range.