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

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