irb(main):034:0> puts 1.upto(14).map {|i| "#{i} * 1.1 => " + (i * 1.1).to_s } 1 * 1.1 = 1.1 2 * 1.1 = 2.2 3 * 1.1 = 3.3000000000000003 4 * 1.1 = 4.4 5 * 1.1 = 5.5 6 * 1.1 = 6.6000000000000005 7 * 1.1 = 7.700000000000001 8 * 1.1 = 8.8 9 * 1.1 = 9.9 10 * 1.1 = 11.0 11 * 1.1 = 12.100000000000001 12 * 1.1 = 13.200000000000001 13 * 1.1 = 14.3 14 * 1.1 = 15.400000000000002
どうしてキリのいい結果がたまに紛れるんですか? 🎳