sign

fun sign(x: Double): Double

Get the sign of the number based on the equal() method Equal is 0.0, positive is 1.0, negative is -1.0

Return

the sign of the number

Parameters

x

the number