Contents

hybrid(explicitPositiveSign:uppercase:)

Creates a custom hybrid format with a system-determined precision value.

Declaration

static func hybrid(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. 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.

See Also

Creating a Custom Formatting Object