Scalar FunctionsMath Functions
sign
Returns the sign of a numeric expression as a real (-1.0, 0.0 or 1.0).
A bool gives 1.0 for true and 0.0 for false. A null input gives 0.0.
Syntax
sign(x)Parameters
Prop
Type
Returns: real
Syntax
sign(x)Parameters
Prop
Type
Returns: real
Examples
Example 1
print sign(-5)| print_0 (real) |
|---|
| -1.0 |