[Bug c++/29597] log expression returns different results when casting

2006-10-25 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2006-10-26 06:39 --- To be more concrete: (int)(expression) rounds down. So if your quotient of logarithms happens to be computed to 5.999, then you will get a result of 5 after casting to int. You should round results, not just

[Bug c++/29597] log expression returns different results when casting

2006-10-25 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-10-25 22:05 --- This comes from precission of the floating point. *** This bug has been marked as a duplicate of 323 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---