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

# 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.
