View Single Post
  #4 (permalink)  
Old 04-17-2008, 07:33 AM
puter puter is offline
Newbie
 
Join Date: Apr 2008
Posts: 5
Credits: 0
Rep Power: 0
puter is on a distinguished road
Default Re: Strange rounding

distance and speedConv are both doubles.

I know the printing method works because when I print out another double (MPG) it prints out as a number similar to 50.22342123

So, that tells me that there should 1) be plenty of decimal places and 2) not be a problem with the printing.

It's almost like it's taking a number that is less than 1 and rounding it to zero for unknown reasons. Oh, and this is a debug print.
Reply With Quote