|
inlineconstexpr |
Computes the elementwise pair of fractional and integral parts of the value,.
Defined in Header
Parameters
Return value
A pair of values containing respectively the elementwise fractional and integral parts of x, each having the type and sign of x.
In particular:
x is infinite {Nan, x} is returned.x is a Nan {Nan, Nan} is returned.For complex inputs the operation is applied to both real and imaginary parts.
The call pedantic(modf)(x) ensures standard conformity : if x is infinite, {0, x} is returned.
Example