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

abs

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

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

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

This is simply a convenience function.

See Also

java.math.BigDecimal.abs


fun Attribute<BigInteger>.abs(): Attribute<BigInteger>

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

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

This is simply a convenience function.

See Also

java.math.BigInteger.abs


fun Attribute<Double>.abs(): Attribute<Double>
fun Attribute<Float>.abs(): Attribute<Float>
fun Attribute<Int>.abs(): Attribute<Int>
fun Attribute<Long>.abs(): Attribute<Long>

Same as absoluteValue, but returns a new Attribute

See Also

kotlin.math.absoluteValue