---
title: hybrid
framework: os
role: symbol
role_heading: Type Property
path: os/oslogfloatformatting/hybrid
---

# hybrid

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

## Declaration

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

## Mentioned in

Generating Log Messages from Your Code

## Discussion

Discussion This option is equivalent to the %g option in fprintf. It behaves like the fixed option when the number is close to 1.0, and like the exponential option when the number has a large exponent.

## See Also

### Getting the Standard Formats

- [fixed](os/oslogfloatformatting/fixed.md)
- [hex](os/oslogfloatformatting/hex.md)
- [exponential](os/oslogfloatformatting/exponential.md)
