S
Sam Kong
Hello!
I wonder if there's a good way to make a function that calculates 2
big numbers (whole numbers) expressed as strings and return a result
string with the value of a number?
For example:
string MyAdd(string s1, string s2);
s = MyAdd("10", "20"); //=> returns "30"
When the numbers are small, no problem.
However, if the numbers are like
"123456789012345678901234567890123456789012345678901234567890", how
can I convert it to number?
The number is longer than the significance digits of double or
decimal.
TIA.
Sam
I wonder if there's a good way to make a function that calculates 2
big numbers (whole numbers) expressed as strings and return a result
string with the value of a number?
For example:
string MyAdd(string s1, string s2);
s = MyAdd("10", "20"); //=> returns "30"
When the numbers are small, no problem.
However, if the numbers are like
"123456789012345678901234567890123456789012345678901234567890", how
can I convert it to number?
The number is longer than the significance digits of double or
decimal.
TIA.
Sam