Ask HN: Why Ruby doesn’t know how to do maths? 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 |