Instance Propertyswift 6.0.1Swift

    isWholeNumber

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

    var isWholeNumber: Bool { get }

    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

    Other members in extension

    Typealiases

    Type members

    Instance members

    Show obsolete interfaces (1)

    Hide obsolete interfaces