float_negate
Concepts
Section titled “Concepts”Behaviour
Section titled “Behaviour”- Multiply an XFL by
-1
- Return a new XFL as an int64_t
- Negates a float representation.
- Returns an error code or the negated float as a bigint.
Definition
Section titled “Definition”int64_t float_negate ( int64_t float1);
function float_negate(f1: bigint): ErrorCode | bigint
Example
Section titled “Example”int64_t negative_one = float_negate(float_one());
const negative_one = float_negate(float_one());
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
float1 | int64_t | An XFL floating point enclosing number |
Name | Type | Description |
---|---|---|
f1 | bigint | The float to negate. |
Return Code
Section titled “Return Code”Type | Description |
---|---|
int64_t | The XFL (xls17) enclosing number |
Type | Description |
---|---|
ErrorCode or bigint | An error code or The XFL (xls17) enclosing number. |