Companion

object Companion

Functions

of
Link copied to clipboard
common
fun of(val: Int): BigDecimal
fun of(val: Long): BigDecimal
fun of(val: Float, ctx: MathContext = MathContext.UNLIMITED): BigDecimal
fun of(val: Int, ctx: MathContext): BigDecimal
fun of(val: Long, ctx: MathContext): BigDecimal
fun of(val: String, ctx: MathContext? = null): BigDecimal
fun of(val: BigInteger, ctx: MathContext? = null): BigDecimal
fun of(intVal: BigInteger, scale: Int, prec: Int): BigDecimal
fun of(val: Double, ctx: MathContext = MathContext.UNLIMITED): BigDecimal
Translates a double into a BigDecimal, using the double's canonical string representation provided by the Double.toString method.
fun of(unscaledVal: Long, scale: Int): BigDecimal
Translates a long unscaled value and an int _scale into a BigDecimal.
fun of(unscaledVal: Long, scale: Int, prec: Int): BigDecimal
Translates a long value into a BigDecimal with a _scale of zero.

Properties

E
Link copied to clipboard
common
val E: BigDecimal
ONE
Link copied to clipboard
common
val ONE: BigDecimal
The value 1, with a _scale of 0.
ONE_HALF
Link copied to clipboard
common
val ONE_HALF: BigDecimal
The value 0.5, with a _scale of 1.
ONE_TENTH
Link copied to clipboard
common
val ONE_TENTH: BigDecimal
The value 0.1, with a _scale of 1.
PI
Link copied to clipboard
common
val PI: BigDecimal
TEN
Link copied to clipboard
common
val TEN: BigDecimal
The value 10, with a _scale of 0.
TWO
Link copied to clipboard
common
val TWO: BigDecimal
ZERO
Link copied to clipboard
common
val ZERO: BigDecimal
The value 0, with a _scale of 0.