type f32
impl f32С версии. 1.0.0-beta
Методы
abs | () -> f32The absolute value. |
sqrt | () -> f32The square root (NaN for a negative number). |
floor | () -> f32The largest integer value not above x, as a float. |
ceil | () -> f32The smallest integer value not below x, as a float. |
round | () -> f32The nearest integer value as a float (halves round away from zero). |
trunc | () -> f32The integer part as a float |
sin | () -> f32The sine of x radians. |
cos | () -> f32The cosine of x radians. |
exp | () -> f32e raised to the power x. |
ln | () -> f32The natural logarithm (NaN for a negative number, -inf for zero). |
log10 | () -> f32The base-10 logarithm. |
log2 | () -> f32The base-2 logarithm. |
isNaN | () -> boolWhether the value is not a number (the result of 0.0 / 0.0). |
isInfinite | () -> boolWhether the value is positive or negative infinity. |
min | (o: f32) -> f32The smaller of the two values (the other one if one of them is NaN). |
max | (o: f32) -> f32The larger of the two values (the other one if one of them is NaN). |
pow | (o: f32) -> f32x raised to the power o. |
toString | () -> strThe text of the value (what interpolation {x} shows). |
Определено в: std/core/numbers.oxl:4198