There’s more than one way to do it

22 Nov
I have tried to run this with both eclipse(CDT)+MinGW and Cygwin+GCC
1 2 3 4 5 6 7 8 9 10 | #include <stdio.h> #include <stdlib.h> #include <float.h> int main() { puts("The range of "); printf("\tlong double is [%Le, %Le]∪[%Le, %Le]\n", -LDBL_MAX, -LDBL_MIN, LDBL_MIN, LDBL_MAX); return EXIT_SUCCESS; } |
but got different results:
This is weird, and I googled it, then just found this http://www.thescripts.com/forum/thread498535.html
The LDBL_MAX of long double is machine-dependent, but why it like this in same machine? I guess it’s the problem with MinGW. Anyone hv any idea?
5 Responses for "LDBL_MAX -1.#QNAN0e+000 with MinGW?"
http://groups.google.com/group/comp.lang.c/browse_thread/thread/4f81864ab1ca1b92/794fa914463b18c0?lnk=raot#794fa914463b18c0
this is another test~
http://www.lommelegen.no/phpf/forum/profile.php?mode=viewprofile&u=615483
Les escarpins louboutin pas cher apportent les femmes added to d’elegance et dividend de charme.Ce sont les modèles les with an augmentation of populaires christian louboutin pas cher de ce trimestre.
Latest coach handbagsIndoctrinate Escape Coupon. Here is a stylishness Cram Coupon because of Sep 2011 that helps you to present 30% At cheap coach outlet Make ready works Stores.Coach is a unequalled American schemer and maker ofsupplement lifestyle coach bags and accessories.
Leave a reply