+ 1

Can we do addition of two 100 digits numbers in swift??

24th Dec 2016, 5:59 AM
Rahul Vengurlekar
Rahul Vengurlekar - avatar
4 ответов
+ 1
Int can store any value between -2,147,483,648 and 2,147,483,647.
25th Dec 2016, 1:53 PM
Felipe Cruz
Felipe Cruz - avatar
+ 1
I can't be sure of it, but I would try to input this numbers as string or as an arraylist, each number of the big number on one position of the array.
25th Dec 2016, 3:27 PM
Felipe Cruz
Felipe Cruz - avatar
0
i want to add two 100 digit numbers.. can I do that??
25th Dec 2016, 3:10 PM
Rahul Vengurlekar
Rahul Vengurlekar - avatar
0
so what can we do if carry is generated while addition??
25th Dec 2016, 4:10 PM
Rahul Vengurlekar
Rahul Vengurlekar - avatar