New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support printf ' (apostrophe) format flag for builtin commifying #15176
Comments
From justincase@yopmail.comAs in C and shell, the ' (apostrophe) format flag is used for: Decimal conversions (d, u, or i) or the integral portion of a This would make it even easier to perform the common task of commifying numbers. |
From @jkeenanOn Thu Feb 11 19:38:47 2016, justincase wrote:
I'm not sure I agree with the feature request, but it would be interesting to learn why Perl differs from C and the shell in this regard. -- |
The RT System itself - Status changed from 'new' to 'open' |
From @maukeAm 13.02.2016 um 02:49 schrieb James E Keenan via RT:
It doesn't really differ from C. The ' flag is not part of standard C. -- |
From justincase@yopmail.comOn Fri Feb 12 17:55:47 2016, plokinom@gmail.com wrote:
I didn't realize it wasn't part of the C standard. Apparently it is defined as an XSI extension [1]. I did verify that it is supported in C on Linux, OS X, FreeBSD, and NetBSD. Other languages supporting it are Bash, Zsh, and awk. [1] http://pubs.opengroup.org/onlinepubs/009695399/functions/fprintf.html |
From justincase@yopmail.comOn Sat, 13 Feb 2016 14:46:31 -0800, justincase wrote:
According to http://pubs.opengroup.org/onlinepubs/9699919799/functions/printf.html this is now "supported on all POSIX.1-2008-conforming systems." |
Migrated from rt.perl.org#127521 (status was 'open')
Searchable as RT127521$
The text was updated successfully, but these errors were encountered: