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

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