From: Toki Toki Date: 2008-04-30T07:44:43+09:00 Subject: Re: Sprintf: what does mean the percent symbol? Thanks to all for the help and fast answers. So back to my two example: sprintf("%.3f", "1.2345") => "1.234" Or "%.3f" % "1.2345" => "1.234" Are they the same thing written in different way or the first use sprintf and the second use str % arg, both giving the same result? Thanks. Best regards. -- Posted via http://www.ruby-forum.com/.