Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
problem with long double and double
im using the gcc compiler for windows..
when i use double, up to a point the prgrm works fine but after i multiply two very large matrices, i got values as -1.#INF
...i supposed they were due to double no tbeing abel to hold the values.but when i used long double, all the values n all the arrays cahnage to either 2, -2 or zero.....i dnt know why this is happening...i backed up the program a little bit and then saw tha a simple statement like a=1 gives a as 0.000000 whn i print it on the screen.
0 · ·