---
title: priceFormatStyle
framework: storekit
role: symbol
role_heading: Instance Property
path: storekit/product/priceformatstyle
---

# priceFormatStyle

The format style for the numbers in the price of the product.

## Declaration

```swift
@backDeployed(before: iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, macCatalyst 16.0)
var priceFormatStyle: Decimal.FormatStyle.Currency { get }
```

## Discussion

Discussion The priceFormatStyle value is a localized number suitable for display. Use this value for localizing numbers derived from the price property, such as to calculate the price of two products as $(price * 2). To display the price directly, rather than making calculations, use the displayPrice string instead. note: When using priceFormatStyle on systems earlier than iOS 16, macOS 13, tvOS 16, and watchOS 9, the property may return a format style with a sentinel locale identifier of “xx_XX” in uncommon cases, including if the server has an error, or while testing your app using StoreKit Testing in Xcode. For StoreKit testing, use a later OS version.

## See Also

### Displaying a product description and price

- [displayName](storekit/product/displayname.md)
- [description](storekit/product/description.md)
- [displayPrice](storekit/product/displayprice.md)
- [price](storekit/product/price.md)
- [subscriptionPeriodFormatStyle](storekit/product/subscriptionperiodformatstyle.md)
- [subscriptionPeriodUnitFormatStyle](storekit/product/subscriptionperiodunitformatstyle.md)
