From: nobu.nokada@... Date: 2002-02-18T01:05:06+09:00 Subject: Re: Formatting Hi, At Mon, 18 Feb 2002 00:36:04 +0900, Mike Stok wrote: > > In C, people use printf to format data nicely for display. In Java, > > it's NumbeFormat, DateFormat, etc. > > > > What is the best way to do this in Ruby? > > If you want sprintf like formatting then % might be useful e.g. (lifting > from Programming Ruby's Built In Classes section) Also printf, sprintf and IO#printf. And Time#strftime for date. -- Nobu Nakada