Group: comp.lang.fortran · Group Profile · Search for round 1 in comp.lang.fortran
Author: glen herrmannsfeldt
Date: Sep 20, 2007 00:34
...CEILING(120)=121 R=121/100=1.21 (snip) Is there any way.... There is no good answer. 1.2 is not exactly represented in... greater or slightly less than 1.2. In your case it ... to be greater so it rounds up. The only thing I can... others that you expect to round one way but instead they ... it should properly round 1.2, 1.22, 1.222, but ...1.200001 which should go to 1.2 instead of the expected ...
|