---
title: Unicode.NumericType
framework: swift
role: symbol
role_heading: Enumeration
path: swift/unicode/numerictype
---

# Unicode.NumericType

The numeric type of a scalar.

## Declaration

```swift
enum NumericType
```

## Overview

Overview 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.

## Topics

### Operators

- [==(_:_:)](swift/unicode/numerictype/==(_:_:).md)

### Enumeration Cases

- [Unicode.NumericType.decimal](swift/unicode/numerictype/decimal.md)
- [Unicode.NumericType.digit](swift/unicode/numerictype/digit.md)
- [Unicode.NumericType.numeric](swift/unicode/numerictype/numeric.md)

### Instance Properties

- [hashValue](swift/unicode/numerictype/hashvalue.md)

### Instance Methods

- [hash(into:)](swift/unicode/numerictype/hash(into:).md)

### Default Implementations

- [Equatable Implementations](swift/unicode/numerictype/equatable-implementations.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Unicode Scalar Classifications

- [Unicode.GeneralCategory](swift/unicode/generalcategory.md)
- [Unicode.CanonicalCombiningClass](swift/unicode/canonicalcombiningclass.md)
