Breaks x into an integral part and a fractional part, each of which has the same sign as x. The integral part is stored in i.
real modf (
ref real i
) nothrow @nogc @trusted;
The fractional part of x.
|x||i (on input)||modf(x, i)||i (on return)|
Walter Bright, Don Clugston, Conversion of CEPHES math library to D by Iain Buclaw and David Nadlinger