Nov-27-2023, 12:53 PM
(This post was last modified: Nov-27-2023, 02:50 PM by deanhystad.)
What is "normal"? On a computer it is unlikely that you will ever get a float that that is halfway between two integers. Depending on the result of rounding numbers near midpoint is like depending on comparing floats for equality. Both are completely predictable while being very difficult to predict. You have to be really careful when using floats in comparisons.