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

# decimalSubtract

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

## decimalSubtract(lhs: Number, rhs: Number, ctx: OperationContext = DECIMAL\_128\_CONTEXT): Number

Performs number subtraction with rounding specified by the operation context.
