Type Definition decorum::N32
[−]
[src]
type N32 = NotNan<f32>;
An alias for a floating-point value that cannot be NaN
.
Trait Implementations
impl Real for N32
[src]
fn max_value() -> Self
[src]
Returns the largest finite value that this type can represent. Read more
fn min_value() -> Self
[src]
Returns the smallest finite value that this type can represent. Read more
fn min_positive_value() -> Self
[src]
Returns the smallest positive, normalized value that this type can represent. Read more
fn epsilon() -> Self
[src]
Returns epsilon, a small positive value. Read more
fn min(self, other: Self) -> Self
[src]
Returns the minimum of the two numbers. Read more
fn max(self, other: Self) -> Self
[src]
Returns the maximum of the two numbers. Read more
fn is_sign_positive(self) -> bool
[src]
Returns true
if self
is positive, including +0.0
, Float::infinity()
, and with newer versions of Rust f64::NAN
. Read more
fn is_sign_negative(self) -> bool
[src]
Returns true
if self
is negative, including -0.0
, Float::neg_infinity()
, and with newer versions of Rust -f64::NAN
. Read more
fn signum(self) -> Self
[src]
Returns a number that represents the sign of self
. Read more
fn abs(self) -> Self
[src]
Computes the absolute value of self
. Returns Float::nan()
if the number is Float::nan()
. Read more
fn floor(self) -> Self
[src]
Returns the largest integer less than or equal to a number. Read more
fn ceil(self) -> Self
[src]
Returns the smallest integer greater than or equal to a number. Read more
fn round(self) -> Self
[src]
Returns the nearest integer to a number. Round half-way cases away from 0.0
. Read more
fn trunc(self) -> Self
[src]
Return the integer part of a number. Read more
fn fract(self) -> Self
[src]
Returns the fractional part of a number. Read more
fn recip(self) -> Self
[src]
Take the reciprocal (inverse) of a number, 1/x
. Read more
fn mul_add(self, a: Self, b: Self) -> Self
[src]
Fused multiply-add. Computes (self * a) + b
with only one rounding error. This produces a more accurate result with better performance than a separate multiplication operation followed by an add. Read more
fn abs_sub(self, other: Self) -> Self
[src]
The positive difference of two numbers. Read more
fn powi(self, n: i32) -> Self
[src]
Raise a number to an integer power. Read more
fn powf(self, n: Self) -> Self
[src]
Raise a number to a real number power. Read more
fn sqrt(self) -> Self
[src]
Take the square root of a number. Read more
fn cbrt(self) -> Self
[src]
Take the cubic root of a number. Read more
fn exp(self) -> Self
[src]
Returns e^(self)
, (the exponential function). Read more
fn exp2(self) -> Self
[src]
Returns 2^(self)
. Read more
fn exp_m1(self) -> Self
[src]
Returns e^(self) - 1
in a way that is accurate even if the number is close to zero. Read more
fn log(self, base: Self) -> Self
[src]
Returns the logarithm of the number with respect to an arbitrary base. Read more
fn ln(self) -> Self
[src]
Returns the natural logarithm of the number. Read more
fn log2(self) -> Self
[src]
Returns the base 2 logarithm of the number. Read more
fn log10(self) -> Self
[src]
Returns the base 10 logarithm of the number. Read more
fn to_degrees(self) -> Self
[src]
Converts radians to degrees. Read more
fn to_radians(self) -> Self
[src]
Converts degrees to radians. Read more
fn ln_1p(self) -> Self
[src]
Returns ln(1+n)
(natural logarithm) more accurately than if the operations were performed separately. Read more
fn hypot(self, other: Self) -> Self
[src]
Calculate the length of the hypotenuse of a right-angle triangle given legs of length x
and y
. Read more
fn sin(self) -> Self
[src]
Computes the sine of a number (in radians). Read more
fn cos(self) -> Self
[src]
Computes the cosine of a number (in radians). Read more
fn tan(self) -> Self
[src]
Computes the tangent of a number (in radians). Read more
fn asin(self) -> Self
[src]
Computes the arcsine of a number. Return value is in radians in the range [-pi/2, pi/2] or NaN if the number is outside the range [-1, 1]. Read more
fn acos(self) -> Self
[src]
Computes the arccosine of a number. Return value is in radians in the range [0, pi] or NaN if the number is outside the range [-1, 1]. Read more
fn atan(self) -> Self
[src]
Computes the arctangent of a number. Return value is in radians in the range [-pi/2, pi/2]; Read more
fn atan2(self, other: Self) -> Self
[src]
Computes the four quadrant arctangent of self
(y
) and other
(x
). Read more
fn sin_cos(self) -> (Self, Self)
[src]
Simultaneously computes the sine and cosine of the number, x
. Returns (sin(x), cos(x))
. Read more
fn sinh(self) -> Self
[src]
Hyperbolic sine function. Read more
fn cosh(self) -> Self
[src]
Hyperbolic cosine function. Read more
fn tanh(self) -> Self
[src]
Hyperbolic tangent function. Read more
fn asinh(self) -> Self
[src]
Inverse hyperbolic sine function. Read more
fn acosh(self) -> Self
[src]
Inverse hyperbolic cosine function. Read more
fn atanh(self) -> Self
[src]
Inverse hyperbolic tangent function. Read more