|
|
|
|
|
by ThrowawayR2
2554 days ago
|
|
289/30 is exactly 9 and 149/30 is exactly 4 because they are integer expressions. You need to specify the constants as floating point values if you want floating point behavior. Ruby does know how to do math and is doing precisely what you told it to. |
|