[#23231] What do you think about changing the return value of Kernel#require and Kernel#load to the source encoding of the required file? — =?ISO-8859-15?Q?Wolfgang_N=E1dasi-Donner?= <ed.odanow@...>

Dear Ruby developers and users!

8 messages 2009/04/17

[#23318] [Feature #1408] 0.1.to_r not equal to (1/10) — Heesob Park <redmine@...>

Feature #1408: 0.1.to_r not equal to (1/10)

19 messages 2009/04/26

[ruby-core:23129] Re: [Bug #1336] Change in string representation of Floats

From: "M. Edward (Ed) Borasky" <zznmeb@...>
Date: 2009-04-06 04:15:01 UTC
List: ruby-core #23129
Neither behavior demonstrated above is "incorrect". What is incorrect
is both the expectation that

ruby1.9 -v -e 'p 5.51'

will produce

5.51

*and* the expectation that it will produce

5.5099999999999998

The *correct* expectation is that it will produce a result within plus
or minus some small machine-dependent value of the input, 5.51.
Typically, this small value is on the order of 10 **  -15 for most
64-bit IEEE-format arithmetic.
-- 
M. Edward (Ed) Borasky
http://www.linkedin.com/in/edborasky

I've never met a happy clam. In fact, most of them were pretty steamed.

In This Thread