john tony

sqrtf() mathematical function not yielding correct answer!!!

Discussion created by john tony on Oct 3, 2011
Latest reply on Oct 4, 2011 by CrasyCat


Im using CW 6.3 for programming Coldfire V1 MCF51EM256.

The problem that im facing is that the sqrtf() function for square root is giving incorrect answer. I've included the required header file "math.h". When compiling it does'nt give me any errors or warnings as well; just the value returned by the function is wrong!!!

Please advice if there is anything else i need to do to use mathematical functions other than including "math.h".

Thanks in advance!!!