sign

fun sign(value: Double): Double(source)

Returns the sign of the value; 1 if the value is positive, -1 if the value is negative, or 0 if the value is 0.

Return

The sign of value.

Parameters

value

The value to return the sign of.

See also