*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.