Open p5pRT opened 8 years ago
As in C and shell\, the ' (apostrophe) format flag is used for:
Decimal conversions (d\, u\, or i) or the integral portion of a floating point conversion (f or F) should be grouped and separated by thousands using the non-monetary separator returned by localeconv(3).
This would make it even easier to perform the common task of commifying numbers.
On Thu Feb 11 19:38:47 2016\, justincase wrote:
As in C and shell\, the ' (apostrophe) format flag is used for:
Decimal conversions (d\, u\, or i) or the integral portion of a floating point conversion (f or F) should be grouped and separated by thousands using the non-monetary separator returned by localeconv(3).
This would make it even easier to perform the common task of commifying numbers.
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.
-- James E Keenan (jkeenan@cpan.org)
The RT System itself - Status changed from 'new' to 'open'
Am 13.02.2016 um 02:49 schrieb James E Keenan via RT:
On Thu Feb 11 19:38:47 2016\, justincase wrote:
As in C and shell\, the ' (apostrophe) format flag is used for:
Decimal conversions (d\, u\, or i) or the integral portion of a floating point conversion (f or F) should be grouped and separated by thousands using the non-monetary separator returned by localeconv(3).
This would make it even easier to perform the common task of commifying numbers.
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.
It doesn't really differ from C. The ' flag is not part of standard C. (I don't know how common this extension is in practice.)
-- Lukas Mai \plokinom@​gmail\.com
On Fri Feb 12 17:55:47 2016\, plokinom@gmail.com wrote:
Am 13.02.2016 um 02:49 schrieb James E Keenan via RT:
On Thu Feb 11 19:38:47 2016\, justincase wrote:
As in C and shell\, the ' (apostrophe) format flag is used for:
Decimal conversions (d\, u\, or i) or the integral portion of a floating point conversion (f or F) should be grouped and separated by thousands using the non-monetary separator returned by localeconv(3).
This would make it even easier to perform the common task of commifying numbers.
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.
It doesn't really differ from C. The ' flag is not part of standard C. (I don't know how common this extension is in practice.)
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
On Sat\, 13 Feb 2016 14:46:31 -0800\, justincase wrote:
On Fri Feb 12 17:55:47 2016\, plokinom@gmail.com wrote:
Am 13.02.2016 um 02:49 schrieb James E Keenan via RT:
On Thu Feb 11 19:38:47 2016\, justincase wrote:
As in C and shell\, the ' (apostrophe) format flag is used for:
Decimal conversions (d\, u\, or i) or the integral portion of a floating point conversion (f or F) should be grouped and separated by thousands using the non-monetary separator returned by localeconv(3).
This would make it even easier to perform the common task of commifying numbers.
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.
It doesn't really differ from C. The ' flag is not part of standard C. (I don't know how common this extension is in practice.)
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
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$