Re: How to display 1.234.567.890,00 from 1234567890 ?
  Home FAQ Contact Sign in
comp.lang.perl.misc only
 
Advanced search
POPULAR GROUPS

more...

 Up
Re: How to display 1.234.567.890,00 from 1234567890 ?         

Group: comp.lang.perl.misc · Group Profile
Author: Jürgen Exner
Date: May 5, 2008 06:42

jjstacy@yahoo.net (Jason Stacy) wrote:
>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?

See perldoc -q added

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

jue
no comments
diggit! del.icio.us! reddit!