MODF(arg, mod)
Returns the remainder of the division arg/mod. The value returned is in the base of the denominator "mod". Therefore, for most practical applications the value mod should be an integer.
Using the function as shown below,
B = MODF(X,Y)
is equivalent to the following expressions:
A = X/Y
B = ABSF(A-INTF(A))*Y
Statement |
Assigned Value |
B=MODF(14,8) |
B equals 6 |
Parameter |
Description |
arg |
Numerical value which is divided by the mod value. |
mod |
Numerical value which is divided into the arg value. The returned remainder of the division is in the base of this value. |