chars(test value) = 1124000727777607680000 , 25852016738884976640000 , 620448401733239439360000
This is part of my code....
char* chars = (char*)malloc(capacity_c + 1);
long double* numbers = malloc((sizeof(long double) *capacity_l + 1));
printf("string = %s\n",chars);
long double d = 0;
sscanf_s(chars, "%Lf", &d);
printf("%Lf \n", d);
string = 1124000727777607680000
d = 1124000727777607680000.000000 --> correct value input numbers array
string = 25852016738884976640000
d = 25852016738884978212864.000000 --> it was changed the value.....
string = 620448401733239439360000
d = 620448401733239409999872.000000 --> it was changed the value.....