[][src]Module statrs::prec

Provides utility functions for working with floating point precision

Constants

DEFAULT_F64_ACC

Default accuracy for f64, equivalent to 0.0 * F64_PREC

F64_PREC

Standard epsilon, maximum relative precision of IEEE 754 double-precision floating point numbers (64 bit) e.g. 2^-53

Functions

almost_eq

Returns true if a and b are within acc of each other. If a or b are infinite, returns true only if both are infinite and similarly signed. Always returns false if either number is a NAN.