Navigation:  Reference > Functions >

Mod()

Print this Topic Previous pageReturn to chapter overviewNext page

 

MOD(1,2)

 

PURPOSE

This function returns the division remainder of two specified numbers.

PARTS

1 f/c/eRequired - The dividend, where quotient = dividend / divisor.  This is converted to an integer value before the computation is made.

 

2 f/c/eRequired - The divisor.  This is converted to an integer value before the computation is made.

 

RETURN TYPE - I

 

EXAMPLE

define i type i

i = MOD(100,33)

// i = 1 - 100/33=3 with a remainder of 1

 

i = MOD(100.00,32.33)

// i = 4

// the 100.00 is converted to 100

// the 32.33 is converted to 32

// 100/32 = 4 with a remainter of 4

 

 

 


Page url: http://www.cassoftware.com/tas/manual/mod().htm