[ruby-core:62706] [ruby-trunk - Bug #9858] [Open] Ruby math error

From: nrgarg@...
Date: 2014-05-22 21:01:46 UTC
List: ruby-core #62706
Issue #9858 has been reported by Navneet Garg.

----------------------------------------
Bug #9858: Ruby math error
https://bugs.ruby-lang.org/issues/9858

* Author: Navneet Garg
* Status: Open
* 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/

In This Thread

Prev Next