You have to use the "integer part" function, sometimes called the "floor function". For positive numbers it's the "round down" function, which means you round down to the largest integer that does not exceed the number you're rounding down. int(15*9/7+2) = int(21.2857142857) = 21 That's the best you can do. Edwin