From: Eddie R. <er...@bm...> - 2008-07-07 17:44:06
|
Ok. e.r. On Mon, 2008-07-07 at 17:45 +0200, Albert Graef wrote: > Eddie Rucker wrote: > > Just noticed that > > > 3%4+2%3; > > 17L%12L > > > > It would look much better if the answer was 17%12 since both 17 and 12 > > are machine ints. > > The whole point of the rational type is that it represents exact > rationals, you certainly don't want numerator and denominator to wrap > around in rational arithmetic like machine ints do. That's why rational > numbers necessarily use bigints and thus int operands of % must be > promoted to bigint. > > Albert > |