---
title: Numbers and Basic Values
framework: swift
role: collectionGroup
role_heading: API Collection
path: swift/numbers-and-basic-values
---

# Numbers and Basic Values

Model data with numbers, Boolean values, and other fundamental types.

## Topics

### Logical Values

- [Bool](swift/bool.md)

### Numeric Values

- [Int](swift/int.md)
- [Double](swift/double.md)
- [Float](swift/float.md)

### Ranges

- [Range](swift/range.md)
- [ClosedRange](swift/closedrange.md)

### Errors

- [Error](swift/error.md)
- [Result](swift/result.md)

### Optionals

- [Optional](swift/optional.md)

### Advanced Numerics

- [Numeric Protocols](swift/numeric-protocols.md)
- [Special-Use Numeric Types](swift/special-use-numeric-types.md)
- [SIMD Vector Types](swift/simd-vector-types.md)
- [Global Numeric Functions](swift/global-numeric-functions.md)

### Random Number Generators

- [SystemRandomNumberGenerator](swift/systemrandomnumbergenerator.md)
- [RandomNumberGenerator](swift/randomnumbergenerator.md)

## See Also

### Values and Collections

- [Strings and Text](swift/strings-and-text.md)
- [Collections](swift/collections.md)
- [Time](swift/time-and-duration.md)
