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