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

From: Roger Pack <redmine@...>
Date: 2009-04-04 06:49:09 UTC
List: ruby-core #23116
Issue #1336 has been updated by Roger Pack.


>> * numeric.c (flo_to_s): keeps enough precision for round trip.

One possibility would be to allow Float#to_s to still be (depending on how you look at it) "friendly" or "imprecise."

And keep the precise version for Float#inspect.

The benefit of having them both verbose is that (tongue in cheek) it makes floats hideously ugly which might encourage people to avoid them :)

But having both available separately via #inspect and #to_s would be nice and I'd imagine a patch to that effect would be well received.

A discussion on it can be read at http://www.ruby-forum.com/topic/179361

Cheers.
-=r
----------------------------------------
http://redmine.ruby-lang.org/issues/show/1336

----------------------------------------
http://redmine.ruby-lang.org

In This Thread