Converting Rads to degrees
Hello, please I want to know if there's a standard function that converts the rad value returned by acos() to degrees.
Many thanks in advance
I'm not sure there is, but you can use a simple user defined function to convert it should the need arise in your code.
Here is an example of what such code will look like
double RadToDegrees(double rad) //function name (passed radian value) {double degree = rad*180/M_PI; //actual conversion is done here return(degree); //value in degrees is returned }
I'm not sure there is, but you can use a simple user defined function to convert it should the need arise in your code.
Here is an example of what such code will look like
Thank you so much it works perfectly
Hello, please I want to know if there's a standard function that converts the rad value returned by acos() to degrees.
Many thanks in advance