std.math.remainder

This is a submodule of std.math.

It contains several versions of remainder calculation.

Functions 4

fnreal 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.
fnreal 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.
fnreal remainder(real x, real y) @trusted nothrow @nogcCalculate the remainder x REM y, following IEC 60559.
fnreal remquo(real x, real y, out int n) @trusted nothrow @nogcditto