View Single Post
  #1 (permalink)  
Old March 28th, 2008, 08:28 PM
crmpicco crmpicco is offline
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
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)

Code:
# $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.....

Code:
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
www.ayrshireminis.com
www.crmpicco.co.uk
www.scottishminis.com
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
Reply With Quote