Re: Microrant on Ruy's Math Skills

On Fri, Jan 27, 2012 at 8:32 PM, Tony A.
[email protected]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 =>“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.


But, I would actually prefer a ‘G’ like notation as default: