is it posible to convert double values into degrees?i have this project in c++ that derive a formula and requires conversion into degrees/angle.
ex. of sol in trigonometry
cos C=a*a+b*b-c*c /2ab
hope you can help me.tanx
Last edited on
No. A double is a storage type. A degree is a unit of measure.
You can convert numbers using one unit of measure to another unit of measure.
After looking at your question a few times now, I think I understand it. You want to convert radians to degrees, right?
degrees = C * 180 / 3.1415926;
Define pi to as many digits as you like.