Sept. 7, 2020
12:23 p.m.
BTW why closeTo: is initialized by default with a value of 0.0001 ? https://github.com/pharo-project/pharo/issues/3067 Sent from my iPhone
On 7 Sep 2020, at 20:10, Sven Van Caekenberghe <sven@stfx.eu> wrote:

On 6 Sep 2020, at 22:21, Esteban Maringolo <emaringolo@gmail.com> wrote:
It is not for printing but for testing. I want to assert that a certain calculation gives the expected result.
Then you should use #assert:closeTo: and friends.
(9.1 + (-2.0)) closeTo: 7.1 precision: 0.00001.
Floats should always be compared using an epsilon (precision) value in tests, not using equality.