MOD: remainder of argument1 / argument2 (F)
⇒Home
⇒Contents
⇒more on Programming
(⇒Optional Keywords Syntax)
Bookmarks:
⇒remainder
get the
remainder
when the first argument x is divided by the second argument y:
remainder = MOD( x, y )
! is short for:
remainder = x -
INT
( x / y ) * y
z1 = MOD( 7.1, 6 )
! z1 is set to 1.1
z2 = MOD( -0.7, 0.61 )
! z2 is set to -0.09
z3 = MOD( 0.7, -0.61 )
! z3 is set to 0.09
©2000-2010 Georg Petrich, HicEst Instant Prototype Computing.
All rights reserved.
Impressum