---
schema_version: "1"
id: ded1c1e33800aa15e3d251875a7513cbd49029d5808844425cdfaa92a80eee2e
title: toDegrees
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.6/dw-math-functions-todegrees.md
canonical_url: https://docs.mulesoft.com/dataweave/2.6/dw-math-functions-todegrees
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 46ab3aa8b818d6f26ef3c69f5354832a12164b632c332d3d1a7ce3ffa97550b7
description: MuleSoft Documentation Site
release: "2.6"
latest: false
---
---
product: DataWeave
version: 2.6
---

# toDegrees

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

## toDegrees(angrad: Number): Number

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

_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>angrad</code></p></td><td><div><div><p>Number of radians to convert to degrees.</p></div></div></td></tr></tbody></table>

### Example

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

#### Source

```DataWeave
%dw 2.0
import * from dw::util::Math
output application/json
---
{
  "toDegrees0.17":  toDegrees(0.174),
  "toDegrees0": toDegrees(0),
  "toDegrees-20": toDegrees(-0.20)
}
```

#### Output

```Json
{
   "toDegrees0.17": 9.969465635276323832571267395889251,
   "toDegrees0": 0E+19,
   "toDegrees-20": -11.45915590261646417536927286883822
 }
```
