Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Open Source > Perl
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Perl section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 28th, 2008, 08:28 PM
Friend of Wrox
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default show numeric value as 102,34 (EURO money)

# $moneytotal{$iso} is 102.34
sprintf("%.2f", $moneytotal{$iso})
is it possible to show the total as 102,34 as if it was in Europe, rather than 102.34 for UK

i'm not really able to change or set the Locale setting unfortunately....

What I am really looking for is having what would appear in the UK as £ 1,012.34 to be displayed as € 1.012,34 if a variable is EUR. This sort of thing.....

if ($curr eq "EUR") { 
# code in here to display as 1.012,34 

I don't think Math::Currency does the job - although I do have it installed, i've looked at the manual for it.

Any other suggestions?

Ayrshire Minis - a Mini E-Community
Ayrshire Minis - a Mini E-Community
Old May 11th, 2008, 07:05 AM
Friend of Wrox
Join Date: Dec 2003
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts

http://search.cpan.org/~tnguyen/Loca...1.25/Format.pm ?

Charlie Harvey's website - linux, perl, java, anarchism and punk rock: http://charlieharvey.org.uk

Similar Threads
Thread Thread Starter Forum Replies Last Post
XSL: Currency symbol Euro elayaraja.s XSLT 2 August 12th, 2008 03:00 AM
From numeric to alfa numeric ebekir XSLT 1 August 10th, 2007 06:13 AM
PHP5: Ch 3, p. 102-105 JaneDean BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 2 January 31st, 2007 02:15 PM
Help even for money shemeri XSLT 1 August 28th, 2005 12:10 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.