i have an Hex String like this : \"0005607947\" and want to convert it to Decimal number , i test it on this site and it correctly convert to decimal number and answer is :
Drop all that code, and just use 'strtol' from the standard library.
#include <stdlib.h>
long strtol (const char *__nptr, char **__endptr, int __base)
For your use:
long decimal_answer = strtol("0005607947", NULL, 16);
You are trying to store the value 90208583 in an int. Arduino has a 2 byte int size meaning that the largest number you can store is 2^16-1 (65535). You have a couple of options: