SGN
Format: var = SGN (expr)
Supported by: COMX BASIC V1.00, Floating Point BASIC 2.2, Pecom 32 BASIC, Pecom 64 BASIC 1.0 and 4.0, Quest Super BASIC 3.0, 5.0 and 6.0, RCA BASIC3 V1.1, Telmac SBASIC v 24.3
Similar commands: -
The value of this function is either +1, 0, or -1 depending upon the sign of expr. If expr is positive, the function returns a +1. If expr evaluates to zero, the function returns as its value a 0. If expr is negative, the function returns a -1.