My funny was ironical because ;-) : 1. I just learn about this #round: method. 2. it is doing a better job than #roundTo: 3. it is mathematically identical to #roundTo: but use positive power of 10 whereas the former use negative power of 10. I guess it produces a different impact on the internal representation of Float as powers of 2 sum It is doing a better job, it correctly rounds 1.45 to 1.5 and not 1.4: 1.45 roundTo: 0.1 "1.4000000000000001" 1.45 round: 1 "1.5" It looks like the right method to deprecate will be roundTo:, or may be there are cases when one method is better, and vis versa. I am curious. Le 26/12/2017 à 23:51, Nicolas Cellier a écrit :
Hi Hilaire, it' not just funny: it's the exact case round: was made for. Note that there is an opened issue suggesting the removal of round: (no time to check the exact ref now).
-- Dr. Geo http://drgeo.eu