OxL Reference

type f64

impl f64

Since. 1.0.0-beta

Methods

abs() -> f64
The absolute value.
sqrt() -> f64
The square root (NaN for a negative number).
floor() -> f64
The largest integer value not above x, as a float.
ceil() -> f64
The smallest integer value not below x, as a float.
round() -> f64
The nearest integer value as a float (halves round away from zero).
trunc() -> f64
The integer part as a float
sin() -> f64
The sine of x radians.
cos() -> f64
The cosine of x radians.
exp() -> f64
e raised to the power x.
ln() -> f64
The natural logarithm (NaN for a negative number, -inf for zero).
log10() -> f64
The base-10 logarithm.
log2() -> f64
The base-2 logarithm.
isNaN() -> bool
Whether the value is not a number (the result of 0.0 / 0.0).
isInfinite() -> bool
Whether the value is positive or negative infinity.
min(o: f64) -> f64
The smaller of the two values (the other one if one of them is NaN).
max(o: f64) -> f64
The larger of the two values (the other one if one of them is NaN).
pow(o: f64) -> f64
x raised to the power o.
toString() -> str
The text of the value (what interpolation {x} shows).

Defined in: std/core/numbers.oxl:3923

See also