OxL Справочник OxL
РусскийEnglish

type f32

impl f32

С версии. 1.0.0-beta

Методы

abs() -> f32
The absolute value.
sqrt() -> f32
The square root (NaN for a negative number).
floor() -> f32
The largest integer value not above x, as a float.
ceil() -> f32
The smallest integer value not below x, as a float.
round() -> f32
The nearest integer value as a float (halves round away from zero).
trunc() -> f32
The integer part as a float
sin() -> f32
The sine of x radians.
cos() -> f32
The cosine of x radians.
exp() -> f32
e raised to the power x.
ln() -> f32
The natural logarithm (NaN for a negative number, -inf for zero).
log10() -> f32
The base-10 logarithm.
log2() -> f32
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: f32) -> f32
The smaller of the two values (the other one if one of them is NaN).
max(o: f32) -> f32
The larger of the two values (the other one if one of them is NaN).
pow(o: f32) -> f32
x raised to the power o.
toString() -> str
The text of the value (what interpolation {x} shows).

Определено в: std/core/numbers.oxl:4198

См. также