414 B
414 B
title, tags, cover, firstSeen, lastUpdated
| title | tags | cover | firstSeen | lastUpdated |
|---|---|---|---|---|
| Degrees to radians | math | digital-nomad-6 | 2019-10-15T14:31:11+03:00 | 2020-11-02T19:27:53+02:00 |
Converts an angle from degrees to radians.
- Use
math.piand the degrees to radians formula to convert the angle from degrees to radians.
from math import pi
def degrees_to_rads(deg):
return (deg * pi) / 180.0
degrees_to_rads(180) # ~3.1416