views:

19

answers:

1

hi guys,

i have some price values to display in my page.

i am writing a function which takes the float price and returns the formatted currency val with currency code too..

like fnPrice(1001.01) should print $ 1,000.01

A: 

You've got to do this by hand. For an example look here (or use google): http://www.web-source.net/web_development/currency_formatting.htm

joni