This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 19th, 2013  |  syntax: None  |  size: 0.49 KB  |  views: 25  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Your balance: $ 100 000.00
  2.               € 70 000.00
  3.               3 000 000,00 руб.
  4.        
  5. number_to_currency(70000.00, :unit => "€", :separator => ".", :delimiter => " ", :format => "%u %n")
  6.        
  7. defaults  = I18n.translate('number.format''number.format', :locale => options[:locale], :raise => true) rescue {}
  8. currency  = I18n.translate('number.currency.format''number.currency.format', :locale => options[:locale], :raise => true) rescue {}
  9.        
  10. number_to_currency(70000.00, :locale => :ru)
clone this paste RAW Paste Data