Determines if x is negative This operation is silent, no error flags are set and no exceptions are thrown.
a _decimal value
-1.0 if x is negative, 0.0 if x is zero, 1.0 if x is positive
assert(sgn(decimal32.max) == 1); assert(sgn(-decimal32.max) == -1); assert(sgn(decimal64(0)) == 0);
See Implementation
Determines if x is negative This operation is silent, no error flags are set and no exceptions are thrown.