Skip to main content

next_float

Function next_float 

Source
pub fn next_float(x: f64) -> f64
Expand description

Next representable f64 toward positive infinity.

ยงExamples

use mathverse_core::precision::next_float;

let next = next_float(1.0);
assert!(next > 1.0);