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
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol Sendable
A type whose values can safely be passed across concurrency domains by copying.
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.