do you know the algorithm how to store a big number in an array of char
and then calculate it?
I know how to do it for addition and substraction but for multiplication I still can't find the right way.....
the number can be floating type
like : 1234.52
please help me with my problem here......
Big Numbers
Moderator: Board moderators
-
- Experienced poster
- Posts: 202
- Joined: Fri Mar 22, 2002 2:00 am
- Location: Chittagong. CSE - CUET
- Contact:
I know this is not the right way! But you can try.............
Use your addtion routine to make multiplication!
3 * 2 means:
3 + 3 or 2 + 2 + 2 isn't it?
Then ..............
(Actually you should use the process that we follow when doing multiplications in the paper with just a pen { not calculator
}.............)
Use your addtion routine to make multiplication!
3 * 2 means:
3 + 3 or 2 + 2 + 2 isn't it?
Then ..............
(Actually you should use the process that we follow when doing multiplications in the paper with just a pen { not calculator


-
- Experienced poster
- Posts: 147
- Joined: Fri Jun 13, 2003 10:46 pm
-
- New poster
- Posts: 5
- Joined: Mon Jul 14, 2003 7:14 am
- Location: Windsor Ontario
Re: Big Numbers
can you share the theory behind your way of doing it for addition and subtraction?r.z. wrote:I know how to do it for addition and substraction but for multiplication I still can't find the right way.....
Few are those who see with their own eyes and feel with their own hearts.
-
- Experienced poster
- Posts: 147
- Joined: Fri Jun 13, 2003 10:46 pm