From: 7stud -- Date: 2008-04-29T15:35:23+09:00 Subject: Re: Sprintf: what does mean the percent symbol? Robert Klemme wrote: > it's a float format and not a string format. > >> Or >> >> "%.3f" % "1.2345" >> => "1.234" > > Same here: > > "%.3f" % 1.2345 > According to pickaxe2, p. 606, "%" is the name of an instance method in the String class, and its syntax is: str % arg The return value is a string. -- Posted via http://www.ruby-forum.com/.