Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to display 1.234.567.890,00 from 1234567890 ?

0 views
Skip to first unread message

Jason Stacy

unread,
May 5, 2008, 2:33:21 AM5/5/08
to
Given a decimal value (e.g. 1234567890) I want to print this number with
grouping delimiters (european style with dots: 1.234.567.890,00
and not US style 1,234,567,890.00)

How can I do this in perl?

Jason

shei...@my-deja.com

unread,
May 5, 2008, 3:30:18 AM5/5/08
to

Adapt any of the methods given at
http://faq.perl.org/perlfaq5.html#How_can_I_output_my_

BTW: the comma as a decimal separator is country _and_ language
specific, and is not common across europe.

Jürgen Exner

unread,
May 5, 2008, 9:42:48 AM5/5/08
to

See perldoc -q added

Replacing the comma with a dot in the sub commify() is left as an
excercise to the reader.

jue

0 new messages