Re: any simple class for rational numbers?
Juha Nieminen schrieb:
> Leslaw Bieniasz wrote:
>> I need a simple class implementing rational numbers
>> as fractions of integers, together with arithmetic
>> operations on such fractions, checks for overflow, etc.
>> Any suggestions?
>
> I think that in the time it took you to write this and the time it
> will take for someone to write an useful answer, you could have written
> such a simple class yourself... :P
Maybe he has some special requirements, like a very efficient libary or
arbitrary precision support...
|