MOD: remainder of argument1 / argument2 (F)
⇒Home
⇒Contents
⇒more on Programming
(⇒Optional Keywords Syntax)
⇒ Example of a MOD call in "FizzBuzz" (RosettaCode)
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
How your donation will be used, and how to get a HicEst key code in return
©2000-2010 Georg Petrich, HicEst Instant Prototype Computing. All rights reserved.
Impressum