From: Tony Arcieri Date: 2012-01-29T14:24:02+09:00 Subject: Re: Microrant on Ruy's Math Skills --00151747b5d2b64bcb04b7a3ee35 Content-Type: text/plain; charset=ISO-8859-1 On Sat, Jan 28, 2012 at 10:43 AM, Peter Vandenabeele wrote: > That means to remain truely backwards compatible, we would need something > like: > > 1.1 #=> Float (machine dependent) > 1.1BD #=> BigDecimal ("unlimited" size) > 1.1D #=> Decimal (e.g. picking the standardized IEEE 754 2008 Decimal128 > fomat) > I don't think it'd be very Ruby like to have a separate literal syntax depending on the size of the number. Some precedent: >> 1000000000000000.class => Fixnum >> 10000000000000000000000000000000000000000000000000.class => Bignum -- Tony Arcieri --00151747b5d2b64bcb04b7a3ee35--