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