# How to add a custom property in degrees?

I'm trying to create a custom property to control a bone's rotation.
I need a value between a min and a max **degree** value (in my case min -50 and max 20). I tried writing that in multiple ways, but I am struggling. Inputting -50 and 20 alone gives me figures of -1245 degrees for my bone rotation. I went and tried to divide them by 360 and by pi (separately) which didn't help either. And well the most obvious way of adding a "°" or "d" did give me a syntax error.

So... Is the to-go good old maths formula to convert that number into a degrees one? What am I even inputting right now? Radiants? I know not one thing about them other than their existance.

Hope somebody can help me clear the confusion. Thanks in advance!

So if you want to use this custom property in your driver, convert it from degrees to radians by using the radians function like so: radians(var).
• @xDonnervogelx a thing to remember is that $\tau$ rad = $360°$. In python degrees(tau) == 360. $$\tau = 2\pi$$ $${\tau\over 360} = 0.017453292519943295…$$ $${360\over \tau} = 57.2957795130823…$$ Those are the numbers by which you multiply/divide a number to express the same angle when using the other unit. Or in other words, 1 rad ≅ 57°, and 1° ≅ 0.017 rad. Commented Jan 30, 2023 at 22:00