SIGN(1)
PURPOSE
This function will return an N type value indicating the sign of the field value specified.
PARTS
1 f/c/e | Required - N type field to check. |
RETURN TYPE - N
If the value being checked is < 0 the returned value is -1.00.
If the value being checked is = 0 the returned value is 0.00.
If the value being checked is > 0 the returned value is 1.00.
EXAMPLE
define n type n size 6 dec 2
n = sign(-25.29)
// n = -1.00
n = sign(0.00)
// n = 0.00
n = sign(25.29)
// n = 1.00