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

# fixed(precision:explicitPositiveSign:uppercase:)

Creates a custom fixed-point format with the specified precision value.

## Declaration

```swift
static func fixed(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

Return Value A custom fixed-point format for floating-point numbers.

## See Also

### Creating a Custom Formatting Object

- [exponential(explicitPositiveSign:uppercase:)](os/oslogfloatformatting/exponential(explicitpositivesign:uppercase:).md)
- [exponential(precision:explicitPositiveSign:uppercase:)](os/oslogfloatformatting/exponential(precision:explicitpositivesign:uppercase:).md)
- [fixed(explicitPositiveSign:uppercase:)](os/oslogfloatformatting/fixed(explicitpositivesign:uppercase:).md)
- [hex(explicitPositiveSign:uppercase:)](os/oslogfloatformatting/hex(explicitpositivesign:uppercase:).md)
- [hybrid(explicitPositiveSign:uppercase:)](os/oslogfloatformatting/hybrid(explicitpositivesign:uppercase:).md)
- [hybrid(precision:explicitPositiveSign:uppercase:)](os/oslogfloatformatting/hybrid(precision:explicitpositivesign:uppercase:).md)
