float_divide
Concepts
Section titled “Concepts”Behaviour
Section titled “Behaviour”- Divide an XFL by another XFL
- Return a new XFL as an int64_t
- Divides one float representation by another.
- An error code or the quotient as a bigint.
Definition
Section titled “Definition”int64_t float_divide ( int64_t float1, int64_t float2);
function float_divide(f1: bigint, f2: bigint): ErrorCode | bigint
Example
Section titled “Example”int64_t still_one = float_divide(float_one(), float_one());
const still_one = float_divide(float_one(), float_one())
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
float1 | int64_t | An XFL floating point enclosing number to act as numerator |
float2 | int64_t | An XFL floating point enclosing number to act as denominator |
Name | Type | Description |
---|---|---|
f1 | bigint | The dividend float. |
f2 | bigint | The divisor float. |
Return Code
Section titled “Return Code”Type | Description |
---|---|
int64_t | The XFL (xls17) enclosing number |
Type | Description |
---|---|
bigint or ErrorCode | An error code or the quotient as a bigint. |