Contents

OSLogFloatFormatting

The formatting options for double and floating-point numbers.

Declaration

@frozen struct OSLogFloatFormatting

Mentioned 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

See Also

Value Formatters