idwilson
July 22nd, 2004, 12:31 PM
Hi,
I'm sorry if this is a silly question but the pow function is confusing the **** out of me.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_pow.asp
The above link appears to indicate that there is a long double version of the pow function, which I have tried to use only to find that my variables only reach double precision - and the pow function then uses the double pow (double, double) version.
I've looked at the project settings and nothing obvious hits me. :(
Checking the data type ranges long double would be perfect for my purposes, but running in debug seems to indicate that long double variables are being treated as doubles?
Can someone please shed some light on this?
What am I doing wrong? :confused:
Thanks for reading this.
Ian
I'm sorry if this is a silly question but the pow function is confusing the **** out of me.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_pow.asp
The above link appears to indicate that there is a long double version of the pow function, which I have tried to use only to find that my variables only reach double precision - and the pow function then uses the double pow (double, double) version.
I've looked at the project settings and nothing obvious hits me. :(
Checking the data type ranges long double would be perfect for my purposes, but running in debug seems to indicate that long double variables are being treated as doubles?
Can someone please shed some light on this?
What am I doing wrong? :confused:
Thanks for reading this.
Ian