[Newbies] Number formatting printf/sprintf for Squeak?
Michael van der Gulik
mikevdg at gmail.com
Mon Feb 16 23:11:21 UTC 2009
On Tue, Feb 17, 2009 at 11:44 AM, Michael van der Gulik
<mikevdg at gmail.com>wrote:
>
>
> c := ScaledDecimal newFromNumber: 123.45 scale: 2.
>
A better version (which I just discovered):
c := 123.45s2.
Gulik.
--
http://gulik.pbwiki.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20090217/c02b1cfa/attachment.htm
More information about the Beginners
mailing list