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

abs

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

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

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 Field<BigInteger>.abs(): Field<BigInteger>

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

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 Field<Double>.abs(): Field<Double>
fun Field<Float>.abs(): Field<Float>
fun Field<Int>.abs(): Field<Int>
fun Field<Long>.abs(): Field<Long>

Same as absoluteValue, but returns a new Field

See Also

kotlin.math.absoluteValue