in reply to Re^2: Printing large numbers with commas to show thousands groups.
in thread Printing large numbers with commas to show thousands groups.
To modify existing code, just change your printf's to cprintf's and add apostrophe's to the formats as needed. Less work than wrapping each argument with a subroutine call and changing each format to %s. It also helps keep things clear and readable.
So, my attempt was to provide a solution without shelling out printf. And done, without having to pull in another package and introducing object syntax.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Printing large numbers with commas to show thousands groups.
by Anonymous Monk on Dec 30, 2019 at 18:54 UTC |