Thread Perl kaufm. Runden printf (4 answers)
Opened by marky at 2009-10-07 19:27

Gast rolfschau
 2009-10-08 12:14
#126660 #126660
schau dir mal Locale::Currency::Format an, das liefert das Wahrungszeiebn und tauserder-dezipmalpunkt gleich mit:

perl -MLocale::Currency::Format -e 'print currency_format("EUR", 1234.567) ,"\n";'
1.234,57 EUR
perl -MLocale::Currency::Format -e 'print currency_format("EUR", 1234.564) ,"\n";'
1.234,56 EUR

Rolf

View full thread Perl kaufm. Runden printf