> For the complete documentation index, see [llms.txt](https://augustus-pash.gitbook.io/wasm/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://augustus-pash.gitbook.io/wasm/maths-algorithms/torad-and-todeg.md).

# ToRad and ToDeg

Converts between radients and degrees.

```javascript
 (module
  (func $toRad (export "toRad") (param $x f32) (result f32)
    get_local $x
    f32.const 0.017453292519943295769222222222
    f32.mul
  )
  (func $toDeg (export "toDeg") (param $x f32) (result f32)
    get_local $x
    f32.const 57.295779513082320876846364344191
    f32.mul
  )
)

```
