function abs
source · line 7public
public fun abs(x: Double): Double
Clears the sign bit, retaining every other bit including NaN payloads.
parameter x
source · line 7public
x: Double
scoop:scoop.math:0.1.0
public fun abs(x: Double): Double
Clears the sign bit, retaining every other bit including NaN payloads.
x: Double
public fun abs(value: Byte): Byte
Returns the absolute value; the minimum value wraps to itself.
value: Byte
public fun abs(value: Int): Int
Returns the absolute value; the minimum value wraps to itself.
value: Int
public fun abs(value: Short): Short
Returns the absolute value; the minimum value wraps to itself.
value: Short
public fun abs(x: Float): Float
Clears the sign bit, retaining every other bit including NaN payloads.
x: Float
public fun abs(value: Long): Long
Returns the absolute value; the minimum value wraps to itself.
value: Long