Last updated 20 days ago
Was this helpful?
Determine the sign of a number
Result: 1
Result: 0
Result: -1
sgn( -.3 );
15 = <bx:output>#sgn( 15 )#</bx:output><br> -15 = <bx:output>#sgn( -15 )#</bx:output>
Sgn(number=[numeric])
number
numeric
true
The number to determine the sign of.
sgn( .3 );
sgn( 0 );