float_multiply
Concepts
Section titled “Concepts”Behaviour
Section titled “Behaviour”- Compute the multiplication of two XFL (xls17) floating point numbers
- Return a new XFL as an int64_t
- Compute the multiplication of two XFL (xls17) floating point numbers
- Return n error code or new XFL as a bigint.
Definition
Section titled “Definition”int64_t float_multiply ( int64_t float1, int64_t float2);
function float_multiply(f1: bigint, f2: bigint): ErrorCode | bigint
Example
Section titled “Example”int64_t max_vault_pusd = float_multiply(vault_xrp, exchange_rate);
const max_vault_pusd = float_multiply(vault_xrp, exchange_rate)
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
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 |
Name | Type | Description |
---|---|---|
f1 | bigint | An XFL floating point enclosing number representing the first operand to the multiplication |
f2 | bigint | An XFL floating point enclosing number representing the second operand to the multiplication |
Return Code
Section titled “Return Code”Type | Description |
---|---|
int64_t | The XFL (xls17) enclosing number |
Type | Description |
---|---|
Errorcor or bigint | An error code or The XFL (xls17) enclosing number |