Skip to content

float_divide

Floating Point Numbers (XFL)
  • Divide an XFL by another XFL
  • Return a new XFL as an int64_t
int64_t float_divide (
int64_t float1,
int64_t float2
);
int64_t still_one =
float_divide(float_one(), float_one());
NameTypeDescription
float1int64_tAn XFL floating point enclosing number to act as numerator
float2int64_tAn XFL floating point enclosing number to act as denominator
TypeDescription
int64_t

The XFL (xls17) enclosing number

If negative, an error:
INVALID_FLOAT
- the supplied parameter was not a valid XFL enclosing number or the division resulted in an XFL that cannot be represented.

DIVISION_BY_ZERO
- the supplied parameter was zero.