<!--
{
  "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/OSLogFloatFormatting/hybrid(precision:explicitPositiveSign:uppercase:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "os"
    ],
    "preciseIdentifier" : "s:2os20OSLogFloatFormattingV6hybrid9precision20explicitPositiveSign9uppercaseACSiyXA_S2btFZ"
  },
  "title" : "hybrid(precision:explicitPositiveSign:uppercase:)"
}
-->

# hybrid(precision:explicitPositiveSign:uppercase:)

Creates a custom hybrid format with the precision value.

```
static func hybrid(precision: @autoclosure @escaping () -> Int, explicitPositiveSign: Bool = false, uppercase: Bool = false) -> OSLogFloatFormatting
```

## Parameters

`precision`

The maximum number of digits to display to the right of the decimal point.

`explicitPositiveSign`

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

`uppercase`

A Boolean value that indicates whether to uppercase letters that are part of the floating-point number. For example, it determines the capitalization of the exponent indicator `e` in the number `1.0e9`, or the letters in special values such as `NaN` and `Inf`.

## Return Value

A custom hybrid format for floating-point numbers.

---

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)