<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "os"
    ],
    "preciseIdentifier" : "s:2os20OSLogFloatFormattingV6hybridACvpZ"
  },
  "title" : "hybrid"
}
-->

# hybrid

A hybrid option that changes the format according to the size of the number.

```
static var hybrid: OSLogFloatFormatting { get }
```

## Discussion

This option is equivalent to the `%g` option in `fprintf`. It behaves like the [`fixed`](/documentation/os/OSLogFloatFormatting/fixed) option when the number is close to `1.0`, and like the [`exponential`](/documentation/os/OSLogFloatFormatting/exponential) option when the number has a large exponent.

---

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)