require 'bigdecimal' a = BigDecimal.new("1.2") b = BigDecimal.new("1.0") c = BigDecimal.new("0.2") puts a - b == c puts a * 10 - b * 10 == c * 10