[#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:23202] Re: [Bug #1336] Change in string representation of Floats

From: Urabe Shyouhei <shyouhei@...>
Date: 2009-04-14 06:06:45 UTC
List: ruby-core #23202
Gary Wright wrote:
> 
> I don't think it is even possible unless you introduce binary (or maybe
> hex) floating point literals.  That is the only way you are going to be
> able to safely round-trip between an internal IEEE floating point value
> and a string representation.

No that's not the only one.  Take a look at [ruby-core:23145].  You can reach
to the same answer when you happen to think that hexadecimal numbers are all
representable in decimal.  So are binaries.  Not all decimal floats can be
represented in binary, but all binary floats must have a corresponding decimal
representation.  That is sufficient for this situation.

In This Thread