Prepare repository for merge

This commit is contained in:
Angelos Chalaris
2023-05-01 22:43:50 +03:00
parent ab1ea476c5
commit a5ca5190e5
169 changed files with 0 additions and 626 deletions

View File

@ -0,0 +1,22 @@
---
title: Degrees to radians
type: snippet
tags: [math]
cover: digital-nomad-6
dateModified: 2020-11-02T19:27:53+02:00
---
Converts an angle from degrees to radians.
- Use `math.pi` and the degrees to radians formula to convert the angle from degrees to radians.
```py
from math import pi
def degrees_to_rads(deg):
return (deg * pi) / 180.0
```
```py
degrees_to_rads(180) # ~3.1416
```