|
inlineconstexpr |
Computes the elementwise ieee pair of mantissa and exponent of the floating value,.
Defined in Header
Parameters
x
: argument.Return value
Computes the elementwise ieee frexp of the floating value, returning a pair {m,e}
of values of the same type as
x`, which are related by \(x = m\times 2^e\), with \(|m| \in [0.5, 1.5[\).
However, the cases \(x = \pm\infty\) or is a Nan or a denormal are undefined.
The call eve::pedantic(eve::frexp)(x)
takes also properly care of the cases where \(x = \pm0, \pm\infty\) or is a Nan, where \(m=x\) and \(e=0\) and of the denormal cases.
Example