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