Documentation / dataflow / com.femastudios.dataflow.extensions / java.math.BigDecimal
Go to reference

Extensions for java.math.BigDecimal

abs

Same as abs, but accepts Field and returns a new Field.

fun BigDecimal.abs(mc: Field<MathContext>): Field<BigDecimal>

add

Same as add, but accepts Field and returns a new Field.

fun BigDecimal.add(augend: Field<BigDecimal>, mc: Field<MathContext>): Field<BigDecimal>
fun BigDecimal.add(augend: Field<BigDecimal>, mc: MathContext): Field<BigDecimal>
fun BigDecimal.add(augend: BigDecimal, mc: Field<MathContext>): Field<BigDecimal>

div

Same as div, but accepts Field and returns a new Field.

operator fun BigDecimal.div(other: Field<BigDecimal>): Field<BigDecimal>

divide

Same as divide, but accepts Field and returns a new Field.

fun BigDecimal.divide(divisor: Field<BigDecimal>, roundingMode: Field<RoundingMode>): Field<BigDecimal>
fun BigDecimal.divide(divisor: Field<BigDecimal>, roundingMode: RoundingMode): Field<BigDecimal>
fun BigDecimal.divide(divisor: Field<BigDecimal>, scale: Field<Int>, roundingMode: Field<RoundingMode>): Field<BigDecimal>
fun BigDecimal.divide(divisor: BigDecimal, roundingMode: Field<RoundingMode>): Field<BigDecimal>
fun BigDecimal.divide(divisor: Field<BigDecimal>, mc: Field<MathContext>): Field<BigDecimal>
fun BigDecimal.divide(divisor: Field<BigDecimal>, mc: MathContext): Field<BigDecimal>
fun BigDecimal.divide(divisor: BigDecimal, mc: Field<MathContext>): Field<BigDecimal>

divideToIntegralValue

Same as divideToIntegralValue, but accepts Field and returns a new Field.

fun BigDecimal.divideToIntegralValue(divisor: Field<BigDecimal>): Field<BigDecimal>
fun BigDecimal.divideToIntegralValue(divisor: Field<BigDecimal>, mc: Field<MathContext>): Field<BigDecimal>
fun BigDecimal.divideToIntegralValue(divisor: Field<BigDecimal>, mc: MathContext): Field<BigDecimal>
fun BigDecimal.divideToIntegralValue(divisor: BigDecimal, mc: Field<MathContext>): Field<BigDecimal>

minus

Same as minus, but accepts Field and returns a new Field.

operator fun BigDecimal.minus(other: Field<BigDecimal>): Field<BigDecimal>

movePointLeft

Same as movePointLeft, but accepts Field and returns a new Field.

fun BigDecimal.movePointLeft(n: Field<Int>): Field<BigDecimal>

movePointRight

Same as movePointRight, but accepts Field and returns a new Field.

fun BigDecimal.movePointRight(n: Field<Int>): Field<BigDecimal>

multiply

Same as multiply, but accepts Field and returns a new Field.

fun BigDecimal.multiply(multiplicand: Field<BigDecimal>, mc: Field<MathContext>): Field<BigDecimal>
fun BigDecimal.multiply(multiplicand: Field<BigDecimal>, mc: MathContext): Field<BigDecimal>
fun BigDecimal.multiply(multiplicand: BigDecimal, mc: Field<MathContext>): Field<BigDecimal>

negate

Same as negate, but accepts Field and returns a new Field.

fun BigDecimal.negate(mc: Field<MathContext>): Field<BigDecimal>

pow

Same as pow, but accepts Field and returns a new Field.

fun BigDecimal.pow(n: Field<Int>): Field<BigDecimal>
fun BigDecimal.pow(n: Field<Int>, mc: Field<MathContext>): Field<BigDecimal>
fun BigDecimal.pow(n: Field<Int>, mc: MathContext): Field<BigDecimal>
fun BigDecimal.pow(n: Int, mc: Field<MathContext>): Field<BigDecimal>

rem

Same as rem, but accepts Field and returns a new Field.

operator fun BigDecimal.rem(other: Field<BigDecimal>): Field<BigDecimal>

remainder

Same as remainder, but accepts Field and returns a new Field.

fun BigDecimal.remainder(divisor: Field<BigDecimal>, mc: Field<MathContext>): Field<BigDecimal>
fun BigDecimal.remainder(divisor: Field<BigDecimal>, mc: MathContext): Field<BigDecimal>
fun BigDecimal.remainder(divisor: BigDecimal, mc: Field<MathContext>): Field<BigDecimal>

round

Same as round, but accepts Field and returns a new Field.

fun BigDecimal.round(mc: Field<MathContext>): Field<BigDecimal>

scaleByPowerOfTen

Same as scaleByPowerOfTen, but accepts Field and returns a new Field.

fun BigDecimal.scaleByPowerOfTen(n: Field<Int>): Field<BigDecimal>

setScale

Same as setScale, but accepts Field and returns a new Field.

fun BigDecimal.setScale(newScale: Field<Int>): Field<BigDecimal>
fun BigDecimal.setScale(newScale: Field<Int>, roundingMode: Field<RoundingMode>): Field<BigDecimal>
fun BigDecimal.setScale(newScale: Field<Int>, roundingMode: RoundingMode): Field<BigDecimal>
fun BigDecimal.setScale(newScale: Int, roundingMode: Field<RoundingMode>): Field<BigDecimal>

subtract

Same as subtract, but accepts Field and returns a new Field.

fun BigDecimal.subtract(subtrahend: Field<BigDecimal>, mc: Field<MathContext>): Field<BigDecimal>
fun BigDecimal.subtract(subtrahend: Field<BigDecimal>, mc: MathContext): Field<BigDecimal>
fun BigDecimal.subtract(subtrahend: BigDecimal, mc: Field<MathContext>): Field<BigDecimal>

times

Same as times, but accepts Field and returns a new Field.

operator fun BigDecimal.times(other: Field<BigDecimal>): Field<BigDecimal>