JBigDecimalField

class JBigDecimalField(mathContext: MathContext) : JBigDecimalFieldBase

A field over BigDecimal.

Constructors

JBigDecimalField
Link copied to clipboard
fun JBigDecimalField(mathContext: MathContext = MathContext.DECIMAL64)

Types

Companion
Link copied to clipboard
object Companion : JBigDecimalFieldBase

Functions

add
Link copied to clipboard
open override fun add(a: BigDecimal, b: BigDecimal): BigDecimal
binaryOperation
Link copied to clipboard
open fun binaryOperation(operation: String, left: BigDecimal, right: BigDecimal): BigDecimal
Dynamically invokes a binary operation with the certain name.
binaryOperationFunction
Link copied to clipboard
open override fun binaryOperationFunction(operation: String): (left: BigDecimal, right: BigDecimal) -> BigDecimal
Dynamically dispatches a binary operation with the certain name.
bindSymbol
Link copied to clipboard
open fun bindSymbol(value: String): BigDecimal
The same as bindSymbolOrNull but throws an error if symbol could not be bound
bindSymbolOrNull
Link copied to clipboard
open fun bindSymbolOrNull(value: String): BigDecimal?
Wraps a raw string to T object.
div
Link copied to clipboard
open operator fun BigDecimal.div(b: BigDecimal): BigDecimal
Division of two elements.
open operator fun BigDecimal.div(k: Number): BigDecimal
Division of this element by scalar.
divide
Link copied to clipboard
open override fun divide(a: BigDecimal, b: BigDecimal): BigDecimal
Division of two elements.
leftSideNumberOperation
Link copied to clipboard
open fun leftSideNumberOperation(operation: String, left: Number, right: BigDecimal): BigDecimal
Dynamically invokes a binary operation with the certain name with numeric first argument.
leftSideNumberOperationFunction
Link copied to clipboard
open fun leftSideNumberOperationFunction(operation: String): (left: Number, right: BigDecimal) -> BigDecimal
Dynamically dispatches a binary operation with the certain name with numeric first argument.
minus
Link copied to clipboard
open operator override fun BigDecimal.minus(b: BigDecimal): BigDecimal
multiply
Link copied to clipboard
open override fun multiply(a: BigDecimal, b: BigDecimal): BigDecimal
number
Link copied to clipboard
open override fun number(value: Number): BigDecimal
Wraps a number to T object.
plus
Link copied to clipboard
open operator fun BigDecimal.plus(b: BigDecimal): BigDecimal
Addition of two elements.
pow
Link copied to clipboard
open infix fun BigDecimal.pow(pow: Number): BigDecimal
Raises this value to the power pow.
power
Link copied to clipboard
open override fun power(arg: BigDecimal, pow: Number): BigDecimal
Raises arg to the power pow.
rightSideNumberOperation
Link copied to clipboard
open fun rightSideNumberOperation(operation: String, left: BigDecimal, right: Number): BigDecimal
Dynamically invokes a binary operation with the certain name with numeric second argument.
rightSideNumberOperationFunction
Link copied to clipboard
open fun rightSideNumberOperationFunction(operation: String): (left: BigDecimal, right: Number) -> BigDecimal
Dynamically dispatches a binary operation with the certain name with numeric first argument.
scale
Link copied to clipboard
open override fun scale(a: BigDecimal, value: Double): BigDecimal
Scaling an element by a scalar.
sqrt
Link copied to clipboard
open override fun sqrt(arg: BigDecimal): BigDecimal
Computes the square root of the value arg.
times
Link copied to clipboard
open operator fun BigDecimal.times(b: BigDecimal): BigDecimal
Multiplies this element by scalar.
open operator fun BigDecimal.times(k: Number): BigDecimal
Multiplication of this element by a scalar.
open operator fun Number.times(b: BigDecimal): BigDecimal
Multiplication of this number by element.
unaryMinus
Link copied to clipboard
open operator override fun BigDecimal.unaryMinus(): BigDecimal
unaryOperation
Link copied to clipboard
open fun unaryOperation(operation: String, arg: BigDecimal): BigDecimal
Dynamically invokes an unary operation with the certain name.
unaryOperationFunction
Link copied to clipboard
open override fun unaryOperationFunction(operation: String): (arg: BigDecimal) -> BigDecimal
Dynamically dispatches an unary operation with the certain name.
unaryPlus
Link copied to clipboard
open operator fun BigDecimal.unaryPlus(): BigDecimal
Returns this value.

Properties

one
Link copied to clipboard
open override val one: BigDecimal
neutral operation for multiplication
zero
Link copied to clipboard
open override val zero: BigDecimal
The neutral element of addition.