Package org.gciatto.kt.math

Types

BigDecimal
Link copied to clipboard
common
class BigDecimal : Comparable<BigDecimal>
Immutable, arbitrary-precision signed decimal numbers.
BigInteger
Link copied to clipboard
common
class BigInteger : Comparable<BigInteger>
Immutable arbitrary-precision integers.
MathContext
Link copied to clipboard
common
data class MathContext(precision: Int, roundingMode: RoundingMode)
Immutable objects which encapsulate the context settings which describe certain rules for numerical operators, such as those implemented by the BigDecimal class.
RoundingMode
Link copied to clipboard
common
enum RoundingMode : Enum<RoundingMode>
Specifies a rounding behavior for numerical operations capable of discarding precision.

Functions

bigDecimal
Link copied to clipboard
js
fun bigDecimal(x: dynamic): BigDecimal
bigInteger
Link copied to clipboard
js
fun bigInteger(x: dynamic): BigInteger
fromJava
Link copied to clipboard
fun fromJava(value: BigDecimal): BigDecimal
fun fromJava(value: BigInteger): BigInteger
lock
Link copied to clipboard
common
inline fun <R> lock(any: Any, action: () -> R): R
toJava
Link copied to clipboard
fun BigDecimal.toJava(): BigDecimal
fun BigInteger.toJava(): BigInteger
toKotlin
Link copied to clipboard
fun BigDecimal.toKotlin(): BigDecimal
fun BigInteger.toKotlin(): BigInteger

Properties

DEBUG
Link copied to clipboard
common
const val DEBUG: Boolean = false