EnumerationSwift5.9.0

    NumericType

    The numeric type of a scalar.

    enum NumericType

    Scalars with a non-nil numeric type include numbers, fractions, numeric superscripts and subscripts, and circled or otherwise decorated number glyphs.

    Some letterlike scalars used in numeric systems, such as Greek or Latin letters, do not have a non-nil numeric type, in order to prevent programs from incorrectly interpreting them as numbers in non-numeric contexts.

    Citizens in Swift

    Conformances

    Members

    • case decimal

      A digit that is commonly understood to form base-10 numbers.

    • case digit

      A digit that does not meet the requirements of the decimal numeric type.

    • case numeric

      A digit that does not meet the requirements of the decimal numeric type or a non-digit numeric value.

    Features