[ruby-core:62707] [ruby-trunk - Bug #9858] [Rejected] Ruby math error

From: nobu@...
Date: 2014-05-22 22:46:40 UTC
List: ruby-core #62707
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/

In This Thread

Prev Next