SGN()

Compatible with:
DOS Maximite CMM MM150 MM170 MM+ MMX Picromite ArmiteL4 Armite F4 ArmiteH7 Picomite CMM2

Syntax:
SGN( number )

Description:
Returns the sign of the argument 'number', +1 for positive numbers, 0 for 0, and -1 for negative numbers.


PRINT SGN(-3.4)

Output:
-1


Last edited: 05 October, 2020