<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/Character/isNumber",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:SJ8isNumberSbvp"
  },
  "title" : "isNumber"
}
-->

# isNumber

A Boolean value indicating whether this character represents a number.

```
var isNumber: Bool { get }
```

## Discussion

For example, the following characters all represent numbers:

- “7” (U+0037 DIGIT SEVEN)
- “⅚” (U+215A VULGAR FRACTION FIVE SIXTHS)
- “㊈” (U+3288 CIRCLED IDEOGRAPH NINE)
- “𝟠” (U+1D7E0 MATHEMATICAL DOUBLE-STRUCK DIGIT EIGHT)
- “๒” (U+0E52 THAI DIGIT TWO)

---

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)