so it has to be a long and a long? i tried dividing a word and a word (7 divided by 8), and it gave me an illegal operation. thanks, i will try longs. In a message dated 5/8/99 10:36:20 PM Pacific Daylight Time, oh@hem.passagen.se writes: << What do you have against divu and divs? They discard the remainder if you divide a long by a long. >>