I'm not an expert in maths but the following operation gives a different result in ruby than in any other language or calculator I've tried:
Ruby:
(289 / 30 * 30) - (149 / 30 * 30)
150
Rest of the world:
(289 / 30 * 30) - (149 / 30 * 30)
140
An explanation is greatly appreciated
Ruby does know how to do math and is doing precisely what you told it to.