Hi Oliver,

There is the format method of the String class and a similar format() built
in function.  I've never used them much and didn't find them too easy to
use.  Once you understand them, they are probably easy.

In the incubator is an implementation of a decimal formatting class:

svn+ssh://miesf...@svn.code.sf.net/p/oorexx/code-0/incubator/decimalFormat

written by Lee.  I've never tried that at all and don't know how easy it is
to use.

--
Mark Miesfeld



On Wed, May 8, 2013 at 10:08 AM, Oliver Sims <
oliver.s...@simsassociates.co.uk> wrote:

> **
> I want to format decimal numbers of between 3 and 9 digits so that they
> have the following format:
> x,xxx,xxx.xx
> For example:
> 123 ==> 1.23
> 123456 ==> 1,234.56
> 123456789 ==> 1,234,567.89
> etc.
>
> I can do it with a little routine, but after some searching, I've failed
> to find an easy way to do it using one of the many ooRexx formatting
> functions.
> Is there an easy way?
>
> --
> Oliver Sims
>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
> their applications. This 200-page book is written by three acclaimed
> leaders in the field. The early access version is available now.
> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________
> Oorexx-users mailing list
> Oorexx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-users
>
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to