Re: 1.23 becomes Rat

2009-08-29 Thread Karl Brodowsky
James Cloos: If so, please use something compatable with ieee 754 decimal floats, so that they can be used when running on hardware which supports them. Even w/o such hardware, gcc (at least) has support for software emulation of _Decimal32 and _Decimal64 (and _Decimal128?). I think there ar

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.