- 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);
|float1||int64_t||An XFL floating point enclosing number representing the first operand to the multiplication|
|float2||int64_t||An XFL floating point enclosing number representing the second operand to the multiplication|
Certain multiplications may overflow, which return with an
INVALID_FLOATerror. However an underflow returns as XFL Canonical Zero (i.e. enclosing number = 0).
|int64_t||The XFL (xls17) enclosing number|
If negative, an error:
- one of the supplied parameters was not a valid XFL enclosing number
- the result of the multiplication was too large to store in an XFL.