format(_:)
Formats an floating-point value, using this style.
Declaration
func format(_ value: Value) -> StringParameters
- value:
The floating-point value to format.
Return Value
A string representation of value, formatted according to the style’s configuration.
Discussion
Use this method when you want to create a single style instance, and then use it to format multiple floating-point values. To format a single floating-point value, use the BinaryFloatingPoint instance method formatted(_:), passing in an instance of FloatingPointFormatStyle.Percent, or call formatted() to use a default style.