How can i use big numbers in JAVA ? Which type (NOT long & Big integer), Which Method can i use? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can i use big numbers in JAVA ? Which type (NOT long & Big integer), Which Method can i use?

ways except long, big integer.

19th Apr 2018, 3:30 PM
vuqar.kasimov
vuqar.kasimov - avatar
1 Answer
+ 1
Convert it to strings where the first 4 bits of a character are used the store a digit(in base 16), and the same for the last 4 bits of a character. Then you can interpret the bytes as digits, and do operations with the strings. This should help somewhat https://www.allaboutcircuits.com/textbook/digital/chpt-2/binary-addition/
19th Apr 2018, 3:43 PM
Bebida Roja
Bebida Roja - avatar