Click here to Skip to main content
15,915,663 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to divide very long integers using strings? I tried doing multiplication and done in normal school method
345
+23
----
1035
6900
----
7935

Is there any algorithm for division and modulus operators like above for big integers?
Posted

operators are functions. Here is some example.

But be warned: it can lead to unclear and buggy code. See it as an exercise, not for real world use.
 
Share this answer
 
Comments
Member 11444070 11-Feb-15 7:11am    
could u pls tell me how to overload / operator and comparison operator
Andreas Gieriet 11-Feb-15 14:00pm    
Are the examples too complex or complicated?
Andi
Yes: it's called Long Division[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900