All,

The code below:

m = 5*(
       (1.0)
       - (1.0/2.0)
       )
puts m
m = 5*(
       (1.0) - (1.0/2.0)
       )
puts m

prints out:

bash-3.2$ ./run.rb
-2.5
2.5

The second result is what I expect, but I don't understand the first
result.

I usually put operands at the end of the line instead of the
beginning, so I never ran into this before, but this was originally
Python code that I converted into ruby.

Any insights?

Thanks,
Tom