From: Peter Vandenabeele Date: 2012-01-29T03:30:52+09:00 Subject: Re: Microrant on Ruy's Math Skills --20cf30334f15d4483604b79aceb0 Content-Type: text/plain; charset=UTF-8 On Fri, Jan 27, 2012 at 8:32 PM, Tony Arcieri wrote: > I think the real path forward here would be to propose that BigDecimal is > loaded by default in Ruby 2.0, and to propose some type of literal > representation for them, such as 1.1D that was suggested before. > +1 , assuming that is 100% backwards compatible with the current code. It really is nothing more than a "macro" for xxx.yyyD => BigDecimal.new("xxx.yyy") > > The thing that stops people from using BigDecimal right now is the > inconvenience of doing BigDecimal("1.1"), and the output of BigDecimal#to_s > and #inspect is difficult to interpret. > +1 But, I would actually prefer a 'G' like notation as default: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/391311 HTH, Peter --20cf30334f15d4483604b79aceb0--