std.math.remainder
This is a submodule of std.math.
It contains several versions of remainder calculation.
Copyright
Copyright The D Language Foundation 2000 - 2011.
Functions 4
fn
real fmod(real x, real y) @trusted nothrow @nogcCalculates the remainder from the calculation x/y. Returns: The value of x - i * y, where i is the number of times that y can be completely subtracted from x. The result has the same sign as x.fn
real modf(real x, ref real i) @trusted nothrow @nogcBreaks 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. Returns: The fractional part of x.fn
real remainder(real x, real y) @trusted nothrow @nogcCalculate the remainder x REM y, following IEC 60559.