Documentation / dataflow-async / com.femastudios.dataflow.async.extensions / divide
Go to reference

divide

@JvmName("div") fun Attribute<BigDecimal>.divide(divisor: Attribute<BigDecimal>, roundingMode: Attribute<RoundingMode>): Attribute<BigDecimal>
@JvmName("div") fun Attribute<BigDecimal>.divide(divisor: Attribute<BigDecimal>, roundingMode: RoundingMode): Attribute<BigDecimal>
@JvmName("div") fun Attribute<BigDecimal>.divide(divisor: Attribute<BigDecimal>, scale: Attribute<Int>, roundingMode: Attribute<RoundingMode>): Attribute<BigDecimal>
@JvmName("div") fun Attribute<BigDecimal>.divide(divisor: BigDecimal, roundingMode: Attribute<RoundingMode>): Attribute<BigDecimal>
@JvmName("div") fun Attribute<BigDecimal>.divide(divisor: BigDecimal, roundingMode: RoundingMode): Attribute<BigDecimal>
@JvmName("div") fun Attribute<BigDecimal>.divide(divisor: BigDecimal, scale: Int, roundingMode: RoundingMode): Attribute<BigDecimal>
@JvmName("divMathContext") fun Attribute<BigDecimal>.divide(divisor: Attribute<BigDecimal>, mc: Attribute<MathContext>): Attribute<BigDecimal>
@JvmName("divMathContext") fun Attribute<BigDecimal>.divide(divisor: Attribute<BigDecimal>, mc: MathContext): Attribute<BigDecimal>
@JvmName("divMathContext") fun Attribute<BigDecimal>.divide(divisor: BigDecimal, mc: Attribute<MathContext>): Attribute<BigDecimal>
@JvmName("divMathContext") fun Attribute<BigDecimal>.divide(divisor: BigDecimal, mc: MathContext): Attribute<BigDecimal>

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

Calling this function is equivalent to use transform and calling divide in the transformation function.

This is simply a convenience function.

See Also

java.math.BigDecimal.divide