Skip to content

float_multiply

Floating Point Numbers (XFL)
  • Compute the multiplication of two XFL (xls17) floating point numbers
  • Return a new XFL as an int64_t
int64_t float_multiply (
int64_t float1,
int64_t float2
);
int64_t max_vault_pusd =
float_multiply(vault_xrp, exchange_rate);
NameTypeDescription
float1int64_tAn XFL floating point enclosing number representing the first operand to the multiplication
float2int64_tAn XFL floating point enclosing number representing the second operand to the multiplication
TypeDescription
int64_t

The XFL (xls17) enclosing number

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

OVERFLOW
- the result of the multiplication was too large to store in an XFL.