OSLogFloatFormatting
The formatting options for double and floating-point numbers.
Declaration
@frozen struct OSLogFloatFormattingMentioned in
Overview
An OSLogFloatFormatting structure encapsulates the formatting details for double and float values. Use the static fixed, hex, exponential, and hybrid structures to apply default formatting for floating-point values. You can also create new OSLogFloatFormatting structures that customize the rules for handling a leading plus sign, precision information, and more.
Topics
Getting the Standard Formats
Creating a Custom Formatting Object
exponential(explicitPositiveSign:uppercase:)exponential(precision:explicitPositiveSign:uppercase:)fixed(explicitPositiveSign:uppercase:)fixed(precision:explicitPositiveSign:uppercase:)hex(explicitPositiveSign:uppercase:)hybrid(explicitPositiveSign:uppercase:)hybrid(precision:explicitPositiveSign:uppercase:)