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

# +(_:)

Returns the given number unchanged.

```
static func + (x: Self) -> Self
```

## Return Value

The given argument without any changes.

## Discussion

You can use the unary plus operator (`+`) to provide symmetry in your
code for positive numbers when also using the unary minus operator.

```
let x = -21
let y = +21
// x == -21
// y == 21
```

---

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)