You could just set the mask to be a variable, and set that variable to a
diff value for a given currency symbol. 

Or you could use something like: 

<cfset pageLocale = getLocale()>
<cfset setLocale("Japanese")>
<cfoutput>#lsCurrencyFormat(12.34)#</cfoutput> 
<cfset setLocale(pageLocale)>

-----Original Message-----
From: Mike | NZSolutions Ltd [mailto:[EMAIL PROTECTED] 
Sent: Friday, 21 October 2005 11:45 a.m.
To: CF-Talk
Subject: Displaying currencies

hi there,
 
my client displays several currencies on their site. i sue the following
function for displaying the prices correctly...
 
<cffunction name="LScurrency" output="false" returntype="string"
hint="Displays currency for selected country">  <cfargument name="price"
type="numeric" required="true">
 
 <cflock scope="session" timeout="30" type="readonly">
  <cfset new_price = arguments.price * session.currency_value>
  <cfset display_price = session.currency_symbol_left &
numberFormat(new_price, "_.__") & session.currency_symbol_right>
</cflock>
  
 <cfreturn display_price>
</cffunction>
 
my client now wishes to display japanese yen. now this currency does not
use decimal places - whole numbers only. what would be my best approach
for displaying yen correctly?
 
thanks.


Kind Regards

Mike Little
[ Designer ]



  <http://www.nzsolutions.co.nz/images/signature/signature_051005.gif>
Graphic Impact Ponsonby
40 College Hill, Ponsonby, Auckland
DDI +64 9 376 7622
Phone +64 9 376 7360
Fax +64 9 376 7361      

  _____  

CAUTION: This e-mail message and accompanying data may contain
information that is confidential. If you are not the intended recipient
you are notified that any use, dissemination, distribution or copying of
this message or data is prohibited. All content is to be treated as
confidential unless otherwise specified, and is not to be forwarded to
third parties without the prior permission of the author. To do so may
breach the New Zealand Privacy Act 1993. If you have received this
e-mail message in error please delete it and notify me. Thank you.      





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221750
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to