---
title: isWholeNumber
framework: swift
role: symbol
role_heading: Instance Property
path: swift/character/iswholenumber
---

# isWholeNumber

A Boolean value indicating whether this character represents a whole number.

## Declaration

```swift
var isWholeNumber: Bool { get }
```

## Discussion

Discussion For example, the following characters all represent whole numbers: “1” (U+0031 DIGIT ONE) => 1 “५” (U+096B DEVANAGARI DIGIT FIVE) => 5 “๙” (U+0E59 THAI DIGIT NINE) => 9 “万” (U+4E07 CJK UNIFIED IDEOGRAPH-4E07) => 10_000

## See Also

### Checking a Character’s Numeric Properties

- [isNumber](swift/character/isnumber.md)
- [wholeNumberValue](swift/character/wholenumbervalue.md)
- [isHexDigit](swift/character/ishexdigit.md)
- [hexDigitValue](swift/character/hexdigitvalue.md)
