Dan Nachbar wrote in post #1021235:
> You might try using the % instance method of String.
> For example:
> "%.2f" % (1.0/3)  => "0.33"
>
> Dan Nachbar

Would you mind explaining the
> "%.2f"
part? What does the % do? And what does the f do? Thanks!

-- 
Posted via http://www.ruby-forum.com/.