[Glass] 10.12345 round: 2 => 10.12 ?
John M McIntosh
johnmci at smalltalkconsulting.com
Fri Nov 15 11:01:58 PST 2013
Ok I am relying on old knowledge could be they altered the original decision
Sent from my iPhone
> On Nov 15, 2013, at 1:42 PM, Martin McClure <martin.mcclure at gemtalksystems.com> wrote:
>
>> 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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2352 bytes
Desc: not available
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20131115/9da56eec/attachment.bin>
More information about the Glass
mailing list