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

# 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
 }
```
