View Single Post
  #1 (permalink)  
Old 04-16-2008, 11:39 PM
puter puter is offline
Newbie
 
Join Date: Apr 2008
Posts: 5
Rep Power: 0
puter is on a distinguished road
Default Strange rounding

doing a simple calculation using C#. I am setting distance = speedConv / 3600.

speedConv is between 0 and 60. When I print out all the values speedConv, for example is 30...but distance is always 0. I have calculated several values and they are in the area of .005, which should be well within the range of a double.

Does anyone know of any reason this value would be getting rounded to 0?


Thanks
Reply With Quote

Sponsored Links