> On 6 Sep 2020, at 22:21, Esteban Maringolo <emaring...@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.
- [Pharo-users] Rounding in Floats Esteban Maringolo
- Re: [Pharo-users] Rounding in Floats Sven Van Caekenberghe
- Re: [Pharo-users] Rounding in Floats Esteban Maringolo
- Re: [Pharo-users] Rounding in Floats Konrad Hinsen
- Re: [Pharo-users] Rounding in Floats Sven Van Caekenberghe
- Re: [Pharo-users] Rounding in Float... serge . stinckwich
- Re: [Pharo-users] Rounding in Float... Esteban Maringolo
- Re: [Pharo-users] Rounding in ... Tomohiro Oda
- Re: [Pharo-users] Rounding... Esteban Maringolo
- Re: [Pharo-users] Rounding in ... Richard O'Keefe
- Re: [Pharo-users] Rounding... Esteban Maringolo
- [Pharo-users] Re: Roun... Richard O'Keefe
- [Pharo-users] Re: Roun... Esteban Maringolo
- [Pharo-users] Re: Roun... Sven Van Caekenberghe
- [Pharo-users] Re: Roun... Sven Van Caekenberghe