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
|