---
title: number
framework: uikit
role: symbol
role_heading: Type Property
path: uikit/uipasteboard/detectionpattern/number
---

# number

A pattern that indicates the pasteboard contains a string that consists of a numeric value.

## Declaration

```swift
static let number: UIPasteboard.DetectionPattern
```

## Discussion

Discussion When you include this pattern in calls to detectValues(for:inItemSet:completionHandler:) or detectValues(for:completionHandler:) — detectValuesForPatterns:inItemSet:completionHandler: or detectValuesForPatterns:completionHandler: in Objective-C — and the pasteboard detects a number, it reports the value as an NSNumber.

## See Also

### Detecting common patterns

- [probableWebSearch](uikit/uipasteboard/detectionpattern/probablewebsearch.md)
- [probableWebURL](uikit/uipasteboard/detectionpattern/probableweburl.md)
