[][src]Function avr_libc::lround

pub unsafe extern "C" fn lround(__x: f64) -> i32

The lround() function rounds \a __x to the nearest integer, but rounds halfway cases away from zero (instead of to the nearest even integer). This function is similar to round() function, but it differs in type of return value and in that an overflow is possible.

\return The rounded long integer value. If \a __x is not a finite number or an overflow was, this realization returns the \c LONG_MIN value (0x80000000).