How to manipulate large numbers
-
Hello people, I need some help, i want to know how to store ,add, subtract and multiply 128 bit numbers. Thank you OMAR ALVI
See if the DECIMAL data type will do what you need. While not 128 bits, its variables are stored as 96-bit (12-byte) unsigned integers scaled by a variable power of 10. Another option is to treat the numbers as strings and operate on them one at a time. In other words, multiplying "9182887099" by "4058780506" would produce "37271323146220092094". This can be extended to an infinite number of digits.
-
Hello people, I need some help, i want to know how to store ,add, subtract and multiply 128 bit numbers. Thank you OMAR ALVI
You can use the big number library available in openSSL . Enis Arif ----------- "I am enough of an artist to draw freely upon my imagination. Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world." (Albert Einstein)
-
You can use the big number library available in openSSL . Enis Arif ----------- "I am enough of an artist to draw freely upon my imagination. Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world." (Albert Einstein)