function signum
source · line 14public
public fun signum(x: Float): Float
Returns signed one, preserving signed zero and propagating NaN.
parameter x
source · line 14public
x: Float
scoop:scoop.math:0.1.0
public fun signum(x: Float): Float
Returns signed one, preserving signed zero and propagating NaN.
x: Float
public fun signum(value: Int): Int
Returns minus one, zero or one according to the sign.
value: Int
public fun signum(value: Long): Int
Returns minus one, zero or one according to the sign.
value: Long
public fun signum(x: Double): Double
Returns signed one, preserving signed zero and propagating NaN.
x: Double
public fun signum(value: Short): Int
Returns minus one, zero or one according to the sign.
value: Short
public fun signum(value: Byte): Int
Returns minus one, zero or one according to the sign.
value: Byte