Thank you, your answer totally cleared up the misunderstanding.

Kind regards
Stefan

> If you just add a .0 in the right place...

> puts 98 + (59872 / (13*8.0)) * -51

> -29262.307692307695

> In your line, all numbers were integers, so integer arithmetics was
> used:

> 98 + (59872 / 104) * -51
> 98 + 575 * -51
> 98 + (-29325)
> =
> -29227

> Carlo

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