Hi,

The demo:

##############################
#include <stdio.h>
#include <stdlib.h>

int main(void) {
    double x;
    char * ptr;

    x = strtod("nan", &ptr);
    printf("%f\n", x);

    x = strtod("INf", &ptr);
    printf("%f\n", x);

    return 0;
}
##############################

With the mingw.org compilers that I've tested, the output of that program 
is:

-1.#IND00
1.#INF00

But, on the same machine, with the mingw64 compilers that I've tested, the 
output is:

0.000000
0.000000

Why the difference ?

Cheers,
Rob 


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to