float_sum
Add two XFL numbers together
Concepts
Behaviour
Compute the addition of two XFL (xls17) floating point numbers
Return a new XFL as an int64_t
Definition
C
Example
C
Parameters
Name
Type
Description
float1
int64_t
An XFL floating point enclosing number representing the first operand to the addition
float2
int64_t
An XFL floating point enclosing number representing the second operand to the addition
πHintTo subtract two floats use
float_negate
on the second float then usefloat_sum
.
Return Code
Type
Description
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 addition was too large to store in an XFL.
Last updated