FORMAT builtin method

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

FORMAT builtin method

ThSITC
is there any variation of the FORMAT Builtin method avalaible which does
insert
a decimal point after each Billion, Milliard, Million, and Thousand ??

Thomas.

--
Thomas Schneider (www.thsitc.com)
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Thomas Schneider, Vienna, Austria (Europe) :-)

www.thsitc.com
www.db-123.com
Reply | Threaded
Open this post in threaded view
|

Re: FORMAT builtin method

Jeff Hennick
result = Translate(Format(number),  ",.",  ".,")

On 8/8/2011 7:13 PM, Thomas Schneider wrote:
> is there any variation of the FORMAT Builtin method avalaible which
> does insert
> a decimal point after each Billion, Milliard, Million, and Thousand ??
>
> Thomas.
>

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: FORMAT builtin method

ThSITC
Hello Jeff,
     maybe I'm wrong.... :-(

I want to have NOT to use TWO Functions, or methods, ...

I want to have an OPTION (or an additional Parameter in FORMAT, which
tells FORMAT to insert a DOT after each triple of digits (from right to
left,
and only after the deimal POINT).

But I will have to reread the specification of format ... :-(

By the way: Your example is CLASSIC REXX!

Doesn't work in NetRexx, by the way... :-(
... unless you do use my RexxFunc additions ;-)
............................ and that's the reason why I did ask ! <<grin>>

Thomas.
===================================================
Am 09.08.2011 01:37, schrieb Jeff Hennick:

> result = Translate(Format(number),  ",.",  ".,")
>
> On 8/8/2011 7:13 PM, Thomas Schneider wrote:
>> is there any variation of the FORMAT Builtin method avalaible which
>> does insert
>> a decimal point after each Billion, Milliard, Million, and Thousand ??
>>
>> Thomas.
>>
>
>


--
Thomas Schneider (www.thsitc.com)
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Thomas Schneider, Vienna, Austria (Europe) :-)

www.thsitc.com
www.db-123.com