be completely subtracted from x. The result has the same sign as x.
| x | y | fmod(x, y) | invalid? |
|---|---|---|---|
| ±0.0 | not 0.0 | ±0.0 | no |
| +∞ | anything | NaN | yes |
| anything | ±0.0 | NaN | yes |
| !=+∞ | +∞ | x | no |
real fmod(real x, real y) @trusted nothrow @nogcCalculates the remainder from the calculation x/y.
be completely subtracted from x. The result has the same sign as x.
| x | y | fmod(x, y) | invalid? |
|---|---|---|---|
| ±0.0 | not 0.0 | ±0.0 | no |
| +∞ | anything | NaN | yes |
| anything | ±0.0 | NaN | yes |
| !=+∞ | +∞ | x | no |