I am trying to get a floating variable accurate to just 3 decimal points for a comparison calculation. I am trying the method below, but it doesn\'t work. I can\'t see why not,
Use
fbb=(double)bb/1000;
bb is integer and result is integer, and then converted to double