---
schema_version: "1"
id: 30730a03636fc3ea17a4d0adea81d920e7487a261f279a108f09ce298af49c00
title: toRadians
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.11/dw-math-functions-toradians.md
canonical_url: https://docs.mulesoft.com/dataweave/2.11/dw-math-functions-toradians
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 1655d36f321bbb587e3ed700cfcbfca5567def5dd00c71d01ddcf566e3617d7a
description: MuleSoft Documentation Site
release: "2.11"
latest: false
---
---
product: DataWeave
version: 2.11
---

# toRadians

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## toRadians(angdeg: Number): Number

Converts a given number of degrees in an angle to an approximately equivalent number of radians.

_Introduced in DataWeave version 2.4.0._

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>angdeg</code></p></td><td><div><div><p>Number of degrees to convert into radians.</p></div></div></td></tr></tbody></table>

### Example

This example shows how `toRadians` behaves with different inputs.

#### Source

```DataWeave
%dw 2.0
import * from dw::util::Math
output application/json
---
{
  "toRadians10":  toRadians(10),
  "toRadians013": toRadians(0.13),
  "toRadians-20": toRadians(-20)
}
```

#### Output

```Json
{
   "toRadians10": 0.1745329251994329576922222222222222,
   "toRadians013": 0.002268928027592628449998888888888889,
   "toRadians-20": -0.3490658503988659153844444444444444
 }
```
