You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With certain numbers, it allows the default precision of 0.0001 ( 1, 4.....31, 256.......2047, 8192.....16383 )
And with the other numbers, it returns false.
This code can be used to see at which numbers it returns true ( set the range accordingly, the current range is 1 to 100):
What version of Pharo are you using? We probably rely on the #closeTo: of Pharo and I found a bug in it that I fixed in the latest Pharo 11. Maybe this is related.
Activity
jecisc commentedon Mar 30, 2023
Hi,
What version of Pharo are you using? We probably rely on the #closeTo: of Pharo and I found a bug in it that I fixed in the latest Pharo 11. Maybe this is related.
Joshua-Dias-Barreto commentedon Mar 30, 2023
I use Pharo 11. You are right it is related, because I tested it on Pharo 10 now and #closeTo: works just fine.
olekscode commentedon Apr 23, 2024
We need to write a test for this