
PT-Basic Programming Manual Ver. 1.00 17/143
To return an indication of the mathematical sign (+ or -) of a
given numeric expression.
A% = SGN(N%) or A% = SGN(N!)
A% = SGN(9.86)
PRINT A%
B% = SGN(-5.68)
PRINT B%
B% = SGN(0)
PRINT B%
N% or N! is a numeric expression,it can be an integer or a
real number.
A% is an integer variable to be assigned to the result.
Comentários a estes Manuais