Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Integer division and remainder

Status
Not open for further replies.

JCruz063

Programmer
Feb 21, 2003
716
US
Hi All,
Using Crystal syntax, how do you do integer division? That is, dividing two numbers and always getting an integer, without rounding. For example, 9/2 = 4 (not 4.5 or 5); 10/6 = 1 (not 1.67 or 2).

Also, in the same vein, using Crystal syntax, how do you get the remainder of a division? For example 9/2 = 1; 10/6 = 4.

Thanks!

JC

 
Got it - I'll use the Truncate() and Remainder() functions!

JC

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top