<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/Unicode/NumericType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:s7UnicodeO11NumericTypeO"
  },
  "title" : "Unicode.NumericType"
}
-->

# Unicode.NumericType

The numeric type of a scalar.

```
enum NumericType
```

## 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

[`static func == (Unicode.NumericType, Unicode.NumericType) -> Bool`](/documentation/Swift/Unicode/NumericType/==(_:_:))

Returns a Boolean value indicating whether two values are equal.

### Enumeration Cases

[`case decimal`](/documentation/Swift/Unicode/NumericType/decimal)

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

[`case digit`](/documentation/Swift/Unicode/NumericType/digit)

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

[`case numeric`](/documentation/Swift/Unicode/NumericType/numeric)

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

### Instance Properties

[`var hashValue: Int`](/documentation/Swift/Unicode/NumericType/hashValue)

The hash value.

### Instance Methods

[`func hash(into: inout Hasher)`](/documentation/Swift/Unicode/NumericType/hash(into:))

Hashes the essential components of this value by feeding them into the
given hasher.

### Default Implementations

[Equatable Implementations](/documentation/Swift/Unicode/NumericType/Equatable-Implementations)

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)