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

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