I have a string that contains a 14-digit number.
I want to convert the string to an int.
When I use atoi(stringName), I get the max 32-bit in limitation.
Example:
String1 contains "201400000000"
long long tempNum1;
tempNum1 = atoi(String1);
printf("%d",tempNum1);
Output is: 2147483647
How can I turn this string into a number? I want to compare it to other strings of numbers and find which is the largest. (I have three strings of 14-digit numbers, I want to find which is the smallest, which is the largest).