To properly display this page you need a browser with JavaScript support.
HTBasic Help
×
Menu
Index
Search
Search
HTBasic Example Programs
sgn EXAMPLE
Previous page
Next page
Print version
(c) TransEra Corp, 2021
To properly display this page you need a browser with JavaScript support.
sgn Example
10 CLEAR SCREEN
20 IF SGN(-87)=-1 THEN PRINT "-87 is negative"
30 IF SGN(9)=1 THEN PRINT "9 is positive"
40 IF SGN(0)=0 THEN PRINT "0 is zero"
50 END