Search:
Forum
Beginners
Subtraction in C++
Subtraction in C++
Oct 19, 2018 at 3:23pm UTC
zain ahmad
(12)
I need C++ code to Perfrom Subtraction of two Integers having more than 10 digits
For Example 123456789987654321-1234566777898978787862
Oct 19, 2018 at 3:34pm UTC
helios
(17574)
https://github.com/Helios-vmg/EasyBigNum/blob/master/EasyBigNum.cpp#L218
Oct 19, 2018 at 6:46pm UTC
Syvel
(20)
I would like an answer to this too. I dont understand how to do it from the link.
Last edited on
Oct 19, 2018 at 6:54pm UTC
Oct 19, 2018 at 7:13pm UTC
helios
(17574)
The algorithm is fairly straightforward. It's just the subtraction algorithm children learn in school, generalized to a base that depends on the size of uintptr_t (typically base 2^32 or base 2^64).
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs