<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 8.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/Decimal/_(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Operator",
  "symbol" : {
    "kind" : "Operator",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:So9NSDecimala10FoundationE1doiyA2B_ABtFZ"
  },
  "title" : "/(_:_:)"
}
-->

# /(_:_:)

Divides one decimal number by another.

```
static func / (lhs: Decimal, rhs: Decimal) -> Decimal
```

## Parameters

`lhs`

The value to divide.

`rhs`

The value to divide `lhs` by.

## Return Value

The result of dividing `lhs` by `rhs`.

## Discussion

If the result of this operation requires more precision than the `Decimal`
type can provide, the result is rounded using the
[`NSDecimalNumber.RoundingMode.plain`](/documentation/Foundation/NSDecimalNumber/RoundingMode/plain) rounding mode. To specify a different
rounding mode, use the [`NSDecimalDivide(_:_:_:_:)`](/documentation/Foundation/NSDecimalDivide(_:_:_:_:)) function instead.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)