std.math.remainder

This is a submodule of std.math.

It contains several versions of remainder calculation.

Members

Functions

fmod
real fmod(real x, real y)

Calculates the remainder from the calculation x/y.

modf
real modf(real x, real i)

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.

remainder
real remainder(real x, real y)
remquo
real remquo(real x, real y, int n)

Calculate the remainder x REM y, following IEC 60559.

Meta

Authors

Walter Bright, Don Clugston, Conversion of CEPHES math library to D by Iain Buclaw and David Nadlinger