Mod-Operator [Runtime]/text/sbasic/shared/03070600.xhpSun Microsystems, Inc.converted from old format - fpeMOD operator (mathematical)Mod Operator [Runtime]Returns the integer remainder of a division.Syntax:Result = Expression1 MOD Expression2Return value:IntegerParameters:Result: Any numeric variable that contains the result of the MOD operation.Expression1, Expression2: Any numeric expressions that you want to divide.Example:sub ExampleModprint 10 mod 2.5 REM returns 0print 10 / 2.5 REM returns 4print 10 mod 5 REM returns 0print 10 / 5 REM returns 2print 5 mod 10 REM returns 5print 5 / 10 REM returns 0.5end sub