<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/Product/priceFormatStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "s:8StoreKit7ProductV16priceFormatStyleSo9NSDecimala10FoundationE0eF0V8CurrencyVvp"
  },
  "title" : "priceFormatStyle"
}
-->

# priceFormatStyle

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

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

## Discussion

The [`priceFormatStyle`](/documentation/StoreKit/Product/priceFormatStyle) value is a localized number suitable for display. Use this value for localizing numbers derived from the [`price`](/documentation/StoreKit/Product/price) property, such as to calculate the price of two products as `$(`price * 2`)`.

To display the [`price`](/documentation/StoreKit/Product/price) directly, rather than making calculations, use the [`displayPrice`](/documentation/StoreKit/Product/displayPrice) string instead.

> Note:
> When using ``doc://com.apple.storekit/documentation/StoreKit/Product/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)