The Sign function returns the sign of a numeric argument. The returned value
is:
-1 when the number is negative
0 when the number is negative
1 when the number is positive
result = Sign( number ) |
Examples:
say Sign( 42 ) -- shows: 1 say Sign( 42 - 44 ) -- shows: -1 say Sign( 42 * 0 ) -- shows: 0 |