[−][src]Function avr_libc::frexp
pub unsafe extern "C" fn frexp(__x: f64, __pexp: *mut i16) -> f64
The frexp() function breaks a floating-point number into a normalized fraction and an integral power of 2. It stores the integer in the \c int object pointed to by \a __pexp.
If \a __x is a normal float point number, the frexp() function returns the value \c v, such that \c v has a magnitude in the interval [1/2, 1) or zero, and \a __x equals \c v times 2 raised to the power \a __pexp. If \a __x is zero, both parts of the result are zero. If \a __x is not a finite number, the frexp() returns \a __x as is and stores 0 by \a __pexp.
\note This implementation permits a zero pointer as a directive to skip a storing the exponent.