From: nobu@... Date: 2014-05-22T22:46:40+00:00 Subject: [ruby-core:62707] [ruby-trunk - Bug #9858] [Rejected] Ruby math error Issue #9858 has been updated by Nobuyoshi Nakada. Description updated Status changed from Open to Rejected google "float point error faq". ---------------------------------------- Bug #9858: Ruby math error https://bugs.ruby-lang.org/issues/9858#change-46831 * Author: Navneet Garg * Status: Rejected * Priority: Normal * Assignee: * Category: core * Target version: * ruby -v: 2.1.1 * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- While in IRB session or executing as a script, when performing the sum `21.1 + 7.6` the output is `28.700000000000003` not `28.7` ---Files-------------------------------- ruby_math.rb (40 Bytes) -- https://bugs.ruby-lang.org/