From: Albert G. <Dr....@t-...> - 2008-07-07 16:04:15
|
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 -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |