This is part of the HicEst documentation
MOD(x,y): Remainder of x Divided by y
Related functions are INT, NINT, FLOOR, CEILING, ABS.
⇾Home
⇾Contents
⇾more Programming
⇾ Examples
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
⇾
Support HicEst
⇾
Impressum
©2000-2019 Georg Petrich, HicEst Instant Prototype Computing. All rights reserved.