[squeak-dev] Re: [BUG] some float truncateTo: x results x !!!

glenpaling slp5591 at me.com
Mon Jun 6 18:00:16 UTC 2011


The Squeak implementation is more general:

    Float pi truncateTo: 0.01 -> 3.14
    Float pi truncateTo: 0.001 -> 3.141
    12345 truncateTo: 10 -> 12340

and:
    (16r3FFF truncateTo: 16r10) hex ->16r3FF0
    (Duration seconds: 123456) truncateTo: (Duration minutes: 15) ->
1:10:15:00

Glen

--
View this message in context: http://forum.world.st/BUG-storeString-goes-into-a-tight-infinite-loop-tp3571931p3577589.html
Sent from the Squeak - Dev mailing list archive at Nabble.com.



More information about the Squeak-dev mailing list