Agreed. I'll work on the mathematical approach now.
Thanks a lot.
Type: Posts; User: envec83
Agreed. I'll work on the mathematical approach now.
Thanks a lot.
And another way to calculate the gap between the numbers would be:
0.00000000000000001 (the minimum variation on the mantissa) * 2 ^ 101 = 253530120045645.880299341
Then we are able to...
Yeah I had forgotten about the 15 decimal digits of precision on doubles.
So I guess the numbers are this:
Original number is 1267650600228229401496703205376.000000, which is represented as...
Actually I think my reasoning was right, but I am not sure about the numbers.
Testing manually I found that the minimum number that will produce a change on the original double...
Ahh, I think I get it now. In fact I used the frexp function to see how the computer was storing that number. Here's the code:
#include <stdio.h>
#include <float.h>
#include <math.h>
int...
Hi,
For some reason I am having trouble manipulating large double numbers in C. For example, with the following code:
#include <stdio.h>
#include <math.h>
int main(){
double x;