Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

converting angle to radian [closed]

Tags:

c++

math

I got angle in degree as -415 degrees,

i have converted it into radian as

float degreeValue = -415

float radianValue = degreeValue * pi / 180.0; 

here i got as -0.7(round off)

how to convert again into degree to get same value of angle in degrees.

like image 389
boom Avatar asked Feb 13 '26 12:02

boom


1 Answers

float degreeValue = radianValue * 180.0 / pi;

(and you probably meant -7.24 radian and not -0.7 for -415 degrees)

like image 114
adamk Avatar answered Feb 16 '26 02:02

adamk



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!