I am using asin to calculate the angle. The code is as below :
double FindAngle(const double theValue) { return asin(theValue); }
Find
You can do the following:
double FindAngle(const double theValue) { return (asin(theValue) + 0.0); }
I had the same problem and that worked for me.