Menu

#339 Strange arithmetic

OTHER
closed
gcc (462)
duplicate
Duplicate
2013-01-31
2003-04-21
No

The following code produce strange result:

#include <math.h>
#include <stdio.h>

int main()
{
long double a = powl(-0.0397739, 310.954);
long double b = -5.12198e11;

printf("(%Lg)^(%Lg) = %Lg", a, b, powl(a, b));
return 0;
}

MinGW is v2.0.0 with runtime v2.4, gcc is v3.2.2(mingw
special 20030208-1).

Discussion

  • Luke Dunstan

    Luke Dunstan - 2003-04-22
    • status: open --> closed-duplicate
     
  • Luke Dunstan

    Luke Dunstan - 2003-04-22

    Logged In: YES
    user_id=30442

    This has exactly the same cause as your other bug report
    724385 so I have closed it.

     
  • Earnie Boyd

    Earnie Boyd - 2013-01-31
    • status: closed-duplicate --> closed
    • resolution: --> duplicate
    • category: --> Duplicate
    • milestone: --> OTHER