---
schema_version: "1"
id: e74a050f72f4a34475e0d359eb025939f296fd03208f824386a8a2ae3483a9aa
title: decimalDivide
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/latest/dw-math-functions-decimaldivide.md
canonical_url: https://docs.mulesoft.com/dataweave/latest/dw-math-functions-decimaldivide
source_site: docs.mulesoft.com
content_type: documentation
content_hash: ec9b8a9ac033c4e742ca4a76b06473975535ad85de235bef66e9108141fca03b
description: MuleSoft Documentation Site
release: "2.13"
latest: true
---
---
product: DataWeave
version: 2.13
is-latest-version: true
---

# decimalDivide

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

## decimalDivide(dividend: Number, divisor: Number, ctx: OperationContext = DECIMAL\_128\_CONTEXT): Number

Performs number division with rounding specified by the operation context. If precision is set to 0
(unlimited precision) and the result has an infinite decimal expansion, the function returns an
error.
