Skip to content

float_sign

Floating Point Numbers (XFL)
  • Return 1 if the XFL is negative, otherwise return 0
int64_t float_sign (
int64_t float1
);
int64_t sign =
float_sign(float_one());
NameTypeDescription
float1int64_tAn XFL floating point enclosing number
TypeDescription
int64_t

The sign of the XFL:
0 if positive, 1 if negative.

If negative, an error:
INVALID_FLOAT
- the supplied parameter was not a valid XFL enclosing number