contentsconceptssyntaxlibrariessampleserrorsindex
Full text search
operator   modulo    
     

Summary   Numeric

The remainder.

 

Syntax

  numeric-expression modulo numeric-expression


Purpose

Implements the operation of calculating the modulus of a number with respect to a base value. The modulus is the remainder you get if you divide the number by the base value.

Usage example:

  local counter seconds
  local counter minutes
  local counter hours
  local counter days
  ...
  set minutes to seconds / 60
  set seconds to seconds modulo 60

  set hours to minutes / 60
  set minutes to minutes modulo 60

  set days to hours / 24
  set hours to minutes modulo 24

       
----  

Top [CONTENTS] [CONCEPTS] [SYNTAX] [LIBRARIES] [SAMPLES] [ERRORS] [INDEX]

Generated: April 21, 1999 at 2:01:11 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-1999.