Returns a value indicating the sign of a double-precision floating-point number.
value | A signed number. |
Return value | Meaning |
---|---|
-1 | value is less than zero. |
0 | value is equal to zero. |
1 | value is greater than zero. |
xtd::arithmetic_exception | value is equal to NaN. |