logo

Type Definition decorum::R64

source · []
pub type R64 = Finite<f64>;
Expand description

64-bit floating-point representation that must be a real number.

The prefix “R” for real is used instead of “F” for finite, because if “F” were used, then this name would be very similar to f64.

Trait Implementations

Returns the largest finite value that this type can represent. Read more

Returns the smallest finite value that this type can represent. Read more

Returns the smallest positive, normalized value that this type can represent. Read more

Returns epsilon, a small positive value. Read more

Returns the minimum of the two numbers. Read more

Returns the maximum of the two numbers. Read more

Returns true if self is positive, including +0.0, Float::infinity(), and with newer versions of Rust f64::NAN. Read more

Returns true if self is negative, including -0.0, Float::neg_infinity(), and with newer versions of Rust -f64::NAN. Read more

Returns a number that represents the sign of self. Read more

Computes the absolute value of self. Returns Float::nan() if the number is Float::nan(). Read more

Returns the largest integer less than or equal to a number. Read more

Returns the smallest integer greater than or equal to a number. Read more

Returns the nearest integer to a number. Round half-way cases away from 0.0. Read more

Return the integer part of a number. Read more

Returns the fractional part of a number. Read more

Take the reciprocal (inverse) of a number, 1/x. Read more

Fused multiply-add. Computes (self * a) + b with only one rounding error, yielding a more accurate result than an unfused multiply-add. Read more

The positive difference of two numbers. Read more

Raise a number to an integer power. Read more

Raise a number to a real number power. Read more

Take the square root of a number. Read more

Take the cubic root of a number. Read more

Returns e^(self), (the exponential function). Read more

Returns 2^(self). Read more

Returns e^(self) - 1 in a way that is accurate even if the number is close to zero. Read more

Returns the logarithm of the number with respect to an arbitrary base. Read more

Returns the natural logarithm of the number. Read more

Returns the base 2 logarithm of the number. Read more

Returns the base 10 logarithm of the number. Read more

Converts radians to degrees. Read more

Converts degrees to radians. Read more

Returns ln(1+n) (natural logarithm) more accurately than if the operations were performed separately. Read more

Calculate the length of the hypotenuse of a right-angle triangle given legs of length x and y. Read more

Computes the sine of a number (in radians). Read more

Computes the cosine of a number (in radians). Read more

Computes the tangent of a number (in radians). Read more

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

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

Computes the arctangent of a number. Return value is in radians in the range [-pi/2, pi/2]; Read more

Computes the four quadrant arctangent of self (y) and other (x). Read more

Simultaneously computes the sine and cosine of the number, x. Returns (sin(x), cos(x)). Read more

Hyperbolic sine function. Read more

Hyperbolic cosine function. Read more

Hyperbolic tangent function. Read more

Inverse hyperbolic sine function. Read more

Inverse hyperbolic cosine function. Read more

Inverse hyperbolic tangent function. Read more