[Glass] Printing numbers

Mariano Martinez Peck via Glass glass at lists.gemtalksystems.com
Tue Feb 24 11:58:44 PST 2015

OK...Grease could be a start...

(GRNumberPrinter new
            separator: $,;
            precision: 2; yourself)  print: 12345678

On Tue, Feb 24, 2015 at 4:55 PM, Mariano Martinez Peck <
marianopeck at gmail.com> wrote:

> Hi guys,
> I have quite some reports that print several numbers. Until now we were
> using the default #greaseString. However, we now need to be able to start
> printing nicer and customizable. For example, I may want to put a comma
> every 3 numbers and dots for the decimals. And choose how many decimals.
> And maybe also choose to use scientific notation, etc....
> Also, I need this for both, Pharo and GemStone. I wish I don't have to
> start building yet again my own number formatting library... so.. is there
> something available I could take a look?
> Thanks in advance,
> --
> Mariano
> http://marianopeck.wordpress.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20150224/ca84031c/attachment.html>

More information about the Glass mailing list