---
title: "hex(explicitPositiveSign:uppercase:)"
framework: os
role: symbol
role_heading: Type Method
path: "os/oslogfloatformatting/hex(explicitpositivesign:uppercase:)"
---

# hex(explicitPositiveSign:uppercase:)

## hex(explicitPositiveSign:uppercase:)

hex(explicitPositiveSign:uppercase:) Type Method of OSLogFloatFormatting Creates a custom hexadecimal format.

``` static func hex(explicitPositiveSign: Bool = false, uppercase: Bool = false) -> OSLogFloatFormatting ```

Parameters

- **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. In a hexidecimal number, it determines the capitalization of numerals above the number 9.

Return Value

A custom hexadecimal format for floating-point numbers.
