Re: 1.23 becomes Rat (Re: Synopsis 02: Range objects)

2009-08-28 Thread James Cloos
> "Karl" == Karl Brodowsky writes: Karl> - or should there be a new numeric type similar to Rat that is always Karl> having powers of 10 as denominator (like BigDecimal in Java or Karl> LongDecimal for Ruby or decimal in C# or so)? If so, please use something compatable with ieee 754 decima

1.23 becomes Rat (Re: Synopsis 02: Range objects)

2009-08-27 Thread Karl Brodowsky
Larry Wall wrote: Another note, it's likely that numeric literals such as 1.23 will turn into Rats rather than Nums, at least up to some precision that is pragmatically determined. Doing these as Rat would avoid a lot of the precision issues that floating point arithmetic has all the time.