1
I need my program to return a high number of digits in the house up to 40 digits.
I saw that guy DOUBLE
has a range of 1.7 X 10 -308 to 1.7X10 308, so I must think that it meets, even too, my needs.
But when this simple program is started:
int main()
{
double p = 1234567890123456789012345678901234567890.0;
printf("%.0lf", p);
return 0;
}
See also on Ideone
The return obtained will be: 1234567890123456780000000000000000
How to get around the problem in question?
You have already asked this question and it has already been answered: http://answall.com/questions/38138/divis%C3%A3o-matem%C3%A1tica-precisa Or not?
– Caffé