fast_inline_round_f64

Function fast_inline_round_f64 

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

Returns the given f64 as rounded to the nearest integer. Same output as f64::round(). This follows the as rules for saturated casting of f64 to i64. See more in the Rust Reference.