I searched the documentation and everything and can't find a simple
method for number formatting. Any links?
thanks for your help.
···
--
Posted via http://www.ruby-forum.com/.
I searched the documentation and everything and can't find a simple
method for number formatting. Any links?
thanks for your help.
--
Posted via http://www.ruby-forum.com/.
Ben Johnson 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#%
Do you know how C formatting works? The Ruby printf methods work the same way. The details are given with:
ri Kernel#sprintf
On Aug 21, 2006, at 2:27 PM, Ben Johnson wrote:
I searched the documentation and everything and can't find a simple
method for number formatting. Any links?
--
Conscience is thoroughly well-bred and soon leaves off talking to those who do not wish to hear it.
-Samuel Butler, writer (1835-1902)
Hi,
* Ben Johnson 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
--
Endorsing products is the American way of expressing individuality.
- Calvin