<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "os",
  "identifier" : "/documentation/os/OSLogIntegerFormatting/decimal(explicitPositiveSign:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "os"
    ],
    "preciseIdentifier" : "s:2os22OSLogIntegerFormattingV7decimal20explicitPositiveSignACSb_tFZ"
  },
  "title" : "decimal(explicitPositiveSign:)"
}
-->

# decimal(explicitPositiveSign:)

Creates a decimal format with custom handling of the numerical sign.

```
static func decimal(explicitPositiveSign: Bool = false) -> OSLogIntegerFormatting
```

## Parameters

`explicitPositiveSign`

A Boolean value that indicates whether to display a plus (`+`) sign in front of positive integers.

## Return Value

A custom decimal format for integers.

---

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)