Skip to main content

measure_machine_epsilon

Function measure_machine_epsilon 

Source
pub fn measure_machine_epsilon() -> f64
Expand description

Determines the f64 machine epsilon empirically by halving until 1 + e/2 == 1.

Useful to verify that the platform’s floating-point behaviour matches the constant (it does not on, e.g., x87 extended-precision code paths).