isWholeNumber
A Boolean value indicating whether this character represents a whole number.
Declaration
var isWholeNumber: Bool { get }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