Type PropertyFoundationEssentials
percent
iOS 15.0+
iPadOS 15.0+
Mac Catalyst 15.0+
macOS 12.0+
tvOS 15.0+
watchOS 8.0+
A style for formatting the Swift standard single-precision floating-point type as a percent representation.
static var percent: FloatingPointFormatStyle<Float>.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.