Float64
Edit on GitHubUtilities for working with the Float64 type.
Added in 0.2.0
No other changes yet.
Constants
Float64 constant values.
Float64.infinity
Added in 0.4.0
No other changes yet.
Infinity represented as a Float64 value.
Float64.nan
Added in 0.4.0
No other changes yet.
NaN (Not a Number) represented as a Float64 value.
Float64.pi
Added in 0.5.2
No other changes yet.
Pi represented as a Float64 value.
Float64.tau
Added in 0.5.2
No other changes yet.
Tau represented as a Float64 value.
Float64.e
Added in 0.5.2
No other changes yet.
Euler’s number represented as a Float64 value.
Conversions
Functions for converting between Numbers and the Float64 type.
Float64.fromNumber
Added in 0.2.0
No other changes yet.
Converts a Number to a Float64.
Parameters:
param | type | description |
---|---|---|
number |
Number |
The value to convert |
Returns:
type | description |
---|---|
Float64 |
The Number represented as a Float64 |
Float64.toNumber
Added in 0.2.0
No other changes yet.
Converts a Float64 to a Number.
Parameters:
param | type | description |
---|---|---|
float |
Float64 |
The value to convert |
Returns:
type | description |
---|---|
Number |
The Float64 represented as a Number |
Operations
Mathematical operations for Float64 values.
Float64.add
Added in 0.2.0
No other changes yet.
Computes the sum of its operands.
Parameters:
param | type | description |
---|---|---|
x |
Float64 |
The first operand |
y |
Float64 |
The second operand |
Returns:
type | description |
---|---|
Float64 |
The sum of the two operands |
Float64.sub
Added in 0.2.0
No other changes yet.
Computes the difference of its operands.
Parameters:
param | type | description |
---|---|---|
x |
Float64 |
The first operand |
y |
Float64 |
The second operand |
Returns:
type | description |
---|---|
Float64 |
The difference of the two operands |
Float64.mul
Added in 0.2.0
No other changes yet.
Computes the product of its operands.
Parameters:
param | type | description |
---|---|---|
x |
Float64 |
The first operand |
y |
Float64 |
The second operand |
Returns:
type | description |
---|---|
Float64 |
The product of the two operands |
Float64.div
Added in 0.2.0
No other changes yet.
Computes the quotient of its operands.
Parameters:
param | type | description |
---|---|---|
x |
Float64 |
The first operand |
y |
Float64 |
The second operand |
Returns:
type | description |
---|---|
Float64 |
The quotient of the two operands |
Comparisons
Functions for comparing Float64 values.
Float64.lt
Added in 0.2.0
No other changes yet.
Checks if the first value is less than the second value.
Parameters:
param | type | description |
---|---|---|
x |
Float64 |
The first value |
y |
Float64 |
The second value |
Returns:
type | description |
---|---|
Bool |
true if the first value is less than the second value or false otherwise |
Float64.gt
Added in 0.2.0
No other changes yet.
Checks if the first value is greater than the second value.
Parameters:
param | type | description |
---|---|---|
x |
Float64 |
The first value |
y |
Float64 |
The second value |
Returns:
type | description |
---|---|
Bool |
true if the first value is greater than the second value or false otherwise |
Float64.lte
Added in 0.2.0
No other changes yet.
Checks if the first value is less than or equal to the second value.
Parameters:
param | type | description |
---|---|---|
x |
Float64 |
The first value |
y |
Float64 |
The second value |
Returns:
type | description |
---|---|
Bool |
true if the first value is less than or equal to the second value or false otherwise |
Float64.gte
Added in 0.2.0
No other changes yet.
Checks if the first value is greater than or equal to the second value.
Parameters:
param | type | description |
---|---|---|
x |
Float64 |
The first value |
y |
Float64 |
The second value |
Returns:
type | description |
---|---|
Bool |
true if the first value is greater than or equal to the second value or false otherwise |