[Glass] 10.12345 round: 2 => 10.12 ?
Martin McClure
martin.mcclure at gemtalksystems.com
Fri Nov 15 10:42:55 PST 2013
On 11/15/2013 09:25 AM, John M McIntosh wrote:
> Buried in the Pharo rounding logic is an intent to round to a representation that is represented in the IEEE float values
>
> In squeak a decade back you could have float X = float constant Y
>
> But post the pharo rounding decision that = may fail because the constant is rounded.
>
> The premise is you should not compare float numbers for exact equality
Hmm. That's an odd choice. I couldn't quickly find the rounding logic,
but the "exact" printing in Pharo 2.0 is very much not exact, which is a
very surprising choice, if intentional.
Regards,
-Martin
More information about the Glass
mailing list