View Single Post
Old 02-08-2004, 12:29 AM   #10 (permalink)
cheerios
Banned
 
Location: 'bout 2 feet from my iMac
*sigh* men. ok, long and short of it: an int, divided by an int, will always return an int. you need to use a more precise type of variable to store your data. or cast your ints as doubles before your devison. for the "why" sa well as the how, see above.
cheerios is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38