irb(main):011:0> format("%.2f",125)
=> "125.00"
irb(main):012:0> format("%.2f",125%)
SyntaxError: compile error
(irb):12: syntax error, unexpected ')'
-- 
Posted via http://www.ruby-forum.com/.