Hello,
I'm trying to multiply 2 fractions by using ONLY addition operations. Does anyone know how to do that?
Thanks.
Printable View
Hello,
I'm trying to multiply 2 fractions by using ONLY addition operations. Does anyone know how to do that?
Thanks.
For X*Y Loop X times trough R=R+X
That doesn't work for fractions (decimal fractions that the user enters)!
loose the decimal point, and add up both decimal places in the result, for instance:
2.5 * 3.75
decimal places: 1 + 2 = 3
25 * 375
loop 25 times, add up 375 to result
result = 9375
add 3 decimal places:
9.375
keddie,
How do you lose the decimal points without multiplication/division? Methinks that logarithms are the way to go.
Cheers,
P.
paul> how about instrrev(value,".") to find it, and replace(value,".","") to removit it.
Well i'm not sure how this scenario is set but i'm sure multiplication is done with integers.