Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Language Reference

MOD Function

computes the modulo (remainder)

MOD( value, divisor)

The inputs to the MOD function are as follows:
value
is a numeric matrix or literal giving the dividend.

divisor
is a numeric matrix or literal giving the divisor.
The MOD function is the scalar function returning the remainder of the division of elements of the first argument by elements of the second argument. An example of a valid statement follows.
   b=mod(4,1);

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.