<!--
{
  "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" : "Foundation",
  "identifier" : "/documentation/Foundation/FormatStyle/number-8c8rj",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation11FormatStylePA2A013FloatingPointbC0VySdGRszrlE6numberAFvpZ"
  },
  "title" : "number"
}
-->

# number

A style for formatting the Swift standard double-precision floating-point type.

```
static var number: FloatingPointFormatStyle<Double> { get }
```

## Discussion

Use this type property when the call point allows the use of [`FloatingPointFormatStyle`](/documentation/Foundation/FloatingPointFormatStyle). You typically do this when calling the `formatted` methods of types that conform to <doc://com.apple.documentation/documentation/Swift/BinaryFloatingPoint>.

---

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)