Hi,

this is a big misunderstanding of numbers. You mistake the
*representation* of a number for the number itself. 948484747.5000000,
948484747.50 and 948484747.5 are all the exact same number. So trying to
"convert" one to another makes absolutely no sense.

The only difference is how the number is written down. So what you're
actually looking for is not a number operation but a specific way of
converting a number to a string. You want the decimal representation of
the number with exactly two decimal places. And Wybo showed you the
typical way of doing this.

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