That might be a easy problem but I'm still stacked on it.
I have string variable number = 11111111111111111111111111111110
and in decimal is 4294967294
.
I couldn't use atoi
because its value bypass int value. I tried also istringstream
and strtoul
and both of them gave inaccurate results.
What am I missing here?