Please enable JavaScript to view this site.

ESL Documentation

MATHLIB Function

Return the remainder of X divided by Y.

MOD(X_FV, Y_FV)

X_FV

Y_FV

Positive, non-zero floating point values.

Description

Use this function to return the remainder produced after dividing X by Y. For example, MOD(10.0, 3.0) returns 1.0, and MOD(22.0, 2.0) returns 0.0.

Errors

MOD: second argument = 0; returning -1.0.

Y was specified as 0.0, so the function returned the value -1.0 and placed this message in the ESL errorlog.