---
schema_version: "1"
id: 3472ee7cc0f69c6ab979eb2f9954626462dfab4d77b5e6aad15a21ee546f1449
title: Math Variables (dw::util::Math)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.12/dw-math-variables.md
canonical_url: https://docs.mulesoft.com/dataweave/2.12/dw-math-variables
source_site: docs.mulesoft.com
content_type: documentation
content_hash: d25b0f0eb634215fa115d041547cc7eef256bc7c92766fb73643a49fd43cd0d4
description: MuleSoft Documentation Site
release: "2.12"
latest: false
---
---
product: DataWeave
version: 2.12
---

# Math Variables (dw::util::Math)

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

<table><colgroup><col> <col> <col></colgroup><thead><tr><th>Variable</th><th>Definition</th><th>Description</th></tr></thead><tbody><tr><td><p>DECIMAL_128_CONTEXT</p></td><td><div><div><p><code>DECIMAL_128_CONTEXT: OperationContext</code></p></div></div></td><td><div><div><p>A <code>MathContext</code> object with a precision of 34 digits, matching the IEEE 754-2019 decimal128 format, and a rounding mode of <code>HALF_EVEN</code>.</p></div></div></td></tr><tr><td><p>E</p></td><td><div><div><p><code>E</code></p></div></div></td><td><div><div><p>Variable <code>E</code> sets the value of mathematical constant <code>e</code>, the base of natural logarithms.</p></div><div><p><em>Introduced in DataWeave version 2.4.0.</em></p></div></div></td></tr><tr><td><p>PI</p></td><td><div><div><p><code>PI</code></p></div></div></td><td><div><div><p>Variable <code>PI</code> sets the value of constant value pi, the ratio of the circumference of a circle to its diameter.</p></div><div><p><em>Introduced in DataWeave version 2.4.0.</em></p></div></div></td></tr><tr><td><p>UNLIMITED_CONTEXT</p></td><td><div><div><p><code>UNLIMITED_CONTEXT: OperationContext</code></p></div></div></td><td><div><div><p>A <code>MathContext</code> object with settings configured for unlimited precision arithmetic. The values of the settings are: <code>precision=0</code> and <code>roundingMode=HALF_UP</code>.</p></div></div></td></tr></tbody></table>
