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

Extensions for java.math.BigDecimal

abs

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

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

add

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

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

div

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

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

divide

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

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

divideToIntegralValue

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

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

minus

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

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

movePointLeft

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

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

movePointRight

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

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

multiply

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

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

negate

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

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

pow

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

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

rem

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

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

remainder

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

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

round

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

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

scaleByPowerOfTen

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

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

setScale

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

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

subtract

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

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

times

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

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