Noob question: How to do number formatting?

I searched the documentation and everything and can’t find a simple
method for number formatting. Any links?

thanks for your help.

Ben J. wrote:

I searched the documentation and everything and can’t find a simple
method for number formatting. Any links?

thanks for your help.

Use ri to look up printf, sprintf, and String#%

On Aug 21, 2006, at 2:27 PM, Ben J. wrote:

I searched the documentation and everything and can’t find a simple
method for number formatting. Any links?

Do you know how C formatting works? The Ruby printf methods work the
same way. The details are given with:
ri Kernel#sprintf

Hi,

  • Ben J. wrote (2006-08-22 06:27):

I searched the documentation and everything and can’t find a simple
method for number formatting. Any links?

Something like this?

http://www.rubycentral.com/ref/ref_m_kernel.html#sprintf

Thorsten Broken Social Scene: It’s all gonna
break