(sorry about quoting a different thread, BTW)

That's a thought. Thanks.

I had my PL/I experience in mind, and thought it's a bit niche. But Cobol's
facilities look /very/ similar :-)

Thanks again.

Roops



On Sun, 5 Mar 2023, 11:07 Binyamin Dissen, <[email protected]>
wrote:

> A COBOL picture string would probably be the most understood and complete.
>
> On Sat, 4 Mar 2023 20:06:43 +0000 Rupert Reynolds <[email protected]>
> wrote:
>
> :>To explain, I'm writing new PC code. I want the equivalent of EDMK in
> :>(something like) snprintf() format strings to print numbers with optional
> :>floating currency symbol and spaces/commas between thousands. (not
> :>forgetting n,nn,nn,nnn.nn style used in at least one country).
> :>
> :>As far as I can see, snprintf() format strings can't handle it, but PL/I
> :>and even assembly (EDMK) make this easy.
> :>
> :>Is there a common standard I should look at, please?
> :>
> :>e.g. format 1234.56 with "$999,999,990.00"
> :>leads to "  $1,234.56".
> :>
> :>I'm not going to be choosy about input data type--it's the presentation
> :>that matters and I'd rather not reinvent the wheel.
> :>
> :>Any suggestions, please?
> :>
> :>Roops
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to