This project is closed and read-only.
Actions
Feature #3894
closedBug in the method Float and/or puts
Feature #3894:
Bug in the method Float and/or puts
Status:
Rejected
Assignee:
-
Description
=begin
The bug is a problem in displaying a float, which can cause errors in calculating!!
example:
#ruby1.9.2 or ruby1.9.1 or ruby1.8.7
puts 2305843008139952128.0/23427.0
!= 98426730189096.005805267"¶
#Display 98426730189096.0 instead of 98426730189096.005805267
#This bug affects all versions, whatever the system x86 or x86_64 Linux
#Another error
puts 10.0/3.0
#ruby1.9.1 or ruby1.8.7
#good infinity
#3.33333333333333
#ruby1.9.2
#bad infinity
#3.3333333333333335
#ruby1.9.1 or ruby1.8.7
#good
puts 23427.0/17.0
#1378.05882352941
#ruby1.9.2
#No check, looks good!?
#1378.0588235294117
=end
Actions