quick qxn: can you mod two fractions?

Yomicron

Golden Member
Mar 5, 2002
1,735
1
81
according to my calculator, yes. but I can't give you any more info right now.


EDIT: yep there is no problem moding two fractions, it works just like moding whole numers.
 

LordSnailz

Diamond Member
Nov 2, 1999
4,821
0
0
if that's the case, how do you do that in C ? *confused* any help is appreciated.
tia!
 

Yomicron

Golden Member
Mar 5, 2002
1,735
1
81
Originally posted by: LordSnailz
if that's the case, how do you do that in C ? *confused* any help is appreciated.
tia!
I was afraid you were going to ask about doing this in C, because for that, I have no idea. Plus I'm too tired to test it out in C, but rest asured, it is possible mathematically.


here's an idea, but I haven't completely tested it, multiply the numerators by the common denomenator, mod the numerators, then divide the answer by the common denom.