
Commands - 115
SGN
Numeric Fun ction
SYNTAX: n = SGN(m)
PURPOSE: Determines if number is positive or negative.
REMARK S: m is any number. SGN returns the following:
n = 0, m is 0
n = 1, m is positive
n = -1, m is negative
RELATED: none
EXAMPLE: 10 A = 15
20 PRINT SGN(A)
RUN
1
ERROR: none
Komentarze do niniejszej Instrukcji