From: Daniel Luz Date: 2009-03-03T00:47:54+09:00 Subject: [ruby-core:22626] Re: suggestions for float On Sun, Feb 22, 2009 at 03:59, Roger Pack wrote: > Kurt Stephens suggested awhile back > " > Perhaps Ruby should do what Common Lisp implementations have been doing: > > http://portal.acm.org/citation.cfm?id=989431 > http://kurtstephens.com/files/p372-steele.pdf > ftp://netlib.bell-labs.com/netlib/fp/gdtoa.tgz > > Perhaps the default Float#to_s formatting should not throw away > necessary precision, so that: > > �some_float == eval("#{some_float}") > > is always true. > " Perhaps we could have distinct Float#to_s and #inspect, like Python? -- Daniel