Returns the remainder from the division of the first argument by the second argument, fuzzed to avoid most unexpected floating-point results.

Category: | Mathematical |

The MOD function returns
the remainder from the division of argument-1 by argument-2.
When the result is non-zero, the result has the same sign as the first
argument. The sign of the second argument is ignored.

The computation that
is performed by the MOD function is exact if both of the following
conditions are true:

If either of the above
conditions is not true, a small amount of numerical error can occur
in the floating-point computation. In this case

Copyright © SAS Institute Inc. All rights reserved.