fmod (FUN)ΒΆ
FUNCTION fmod : LREAL
This function returns the value x modulo m . It is defined as fmod(x,m) = x - floor(x/m)*m, except for m = 0.
- fmod has the following properties:
m != 0 => x = floor(x/m)*m + fmod(x,m),
m > 0 => 0 <= fmod(x,m) < m,
m < 0 => 0 >= fmod(x,m) > m.
m = 0 => fmod(x,m) = 0.
- InOut:
Scope
Name
Type
Input
lrX
LREAL
lrM
LREAL
Return
fmod
LREAL