![]() |
sponsored links |
|
|
sponsored links
|
|
1
8th August 04:21
External User
Posts: 1
|
--
Alex Russell alexander.russell@telus.net I added this test code, and had no errors running it under Borland c / dos (pentium ii) Thecode inthe attached snippet does very little floating point math - it is 99% integer math checking the binary format of the double. I expect the error is in some part of the code that actually DOES floating point math. int main() { double l, m; l=2.0; m=3.0; if ( IsNan(l) ) printf("isnan\n"); else printf("is not nan\n"); if ( IsInf(m) ) printf("isinf\n"); else printf("is not inf\n"); return 0; } |
|
|