Search:

Type: Posts; User: envec83

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    2,348

    Agreed. I'll work on the mathematical approach...

    Agreed. I'll work on the mathematical approach now.

    Thanks a lot.
  2. Replies
    8
    Views
    2,348

    And another way to calculate the gap between the...

    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...
  3. Replies
    8
    Views
    2,348

    Yeah I had forgotten about the 15 decimal digits...

    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...
  4. Replies
    8
    Views
    2,348

    Actually I think my reasoning was right, but I am...

    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...
  5. Replies
    8
    Views
    2,348

    Ahh, I think I get it now. In fact I used the...

    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...
  6. Replies
    8
    Views
    2,348

    Help Dealing with Numbers in Double Type

    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;
Results 1 to 6 of 6