From: Eero Saynatkari Date: 2009-03-02T23:14:31+09:00 Subject: [ruby-core:22624] Re: suggestions for float Excerpts from Yukihiro Matsumoto's message of Mon Mar 02 12:46:27 +0200 2009: > > But replacing float by bigdecimal hinders calculation performance a > lot. I don't think it's acceptable. The most user-friendly solution would likely be to go BigDecimal by default and offer either a command-line switch or some pseudo- require "fastdecimal" to default to Floats instead (although the latter would need logic for handling files already loaded.) It would need a toggle in the parser, presumably, presenting a fairly minor overhead? I would imagine most Ruby programs do not depend on floating point performance. A configuration option for the same works too, of course, but not needing a specialized build is probably a good thing. If this seems like a reasonable way to go, it should not be too difficult for someone patch it for you. -- Magic is insufficiently advanced technology.