Contents

percent

A style for formatting the Swift standard single-precision floating-point type as a percent representation.

Declaration

static var percent: FloatingPointFormatStyle<Double>.Percent { get }

Discussion

Use this type property when the call point allows the use of FloatingPointFormatStyle. You typically do this when calling the formatted methods of types that conform to BinaryFloatingPoint.

See Also

Applying percentage styles for floating-point values