search for: number_to_currency_gbp

Displaying 2 results from an estimated 2 matches for "number_to_currency_gbp".

2007 Dec 06
3
number_to_currency
...s = number_with_precision(number, precision).split(''.'') unit + number_with_delimiter(parts[0], delimiter) + separator + parts[1].to_s rescue number end end it definately should work, but why doesnt the £ sign come as a question mark I have also tryed: def number_to_currency_gbp (number) number_to_currency(number, { :unit => "£"}) end This doesnt work either it is not picking up the &pound how can i solve this problem thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this...
2006 Feb 28
4
number_to_currency UK pounds
I work in the UK and therefore most of my currency figures will be in UK pounds. I realise that to format a number to a currency format I can use: number_to_currency(amt, :unit => "?") but it would be more convenient to set ? as the default currency symbol. What is the best way to do that? Should I edit line 39 of this file: