From: Bertram Scharpf Date: 2005-04-16T11:06:02+09:00 Subject: Re: Locales Hi, Am Samstag, 16. Apr 2005, 04:46:54 +0900 schrieb Molitor, Stephen L: > Does anyone know of a good library for doing locale sensitive formatting > of numbers, money, and time? I.e.: > > require 'locale.rb' > > locale = Locale['fr_FRA'] > french_format = 10000.99.to_s(locale) > #=> "10.000,99" > > default_locale_format = 10000.99.to_s > #=> "10,000.99" Fixnum#to_s already has a parameter defined, the base: 15.to_s 16 #=> f Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de