swift-numerics-extended

2.2.0

A Swift package extending numeric protocols, standard numeric types, and experimental numeric types.
BikeCalc/swift-numerics-extended

What's New

2.2.0

2026-09-07T19:08:02Z

swift-numerics-extended

A Swift package extending numeric protocols, standard numeric types, and experimental numeric types.

Overview

Numerics Extended provides a layered set of numeric protocols and utilities for Swift. It includes core numeric operators, core numeric protocols, extensions for standard library numeric protocols, standard numeric type conformances, experimental numeric constants, experimental numeric protocols, and experimental numeric types such as Fraction, Roman, Int4, and UInt4.

Experimental numeric types are included for exploration and documentation, and their APIs may evolve across major releases.

Requirements

  • Swift 6.3+

Numerics Extended is written in Swift and avoids platform-specific APIs where possible.

Installation

  1. Add Numerics Extended to the dependencies in your Package.swift file:

    let package: Package = .init(
        ...
        dependencies: [
            .package(
                url: "https://github.com/bikecalc/swift-numerics-extended.git",
                from: "2.0.0"
            )
        ],
        ...
    )
  2. Add the NumericsExtended product to the dependencies of the target that will import it. Replace YourTarget with the name of that target:

    let package: Package = .init(
        ...
        targets: [
            .target(
                name: "YourTarget",
                dependencies: [
                    .product(
                        name: "NumericsExtended",
                        package: "swift-numerics-extended"
                    )
                ]
            )
        ],
        ...
    )
  3. Import the package in your source code:

    import NumericsExtended

Documentation

You can read more about this package by visiting the documentation.

Contributing

Everyone is welcome to contribute to Numerics Extended. See CONTRIBUTING.md for contribution guidelines, branch conventions, pull request expectations, and testing instructions.

If you find a bug, please create an issue. Security vulnerabilities should be reported using the instructions in SECURITY.md.

Code of Conduct

This project follows a code of conduct. See CODE_OF_CONDUCT.md for more information.

License

Distributed under Apache License v2.0 with Runtime Library Exception. See LICENSE.md for more information.

Description

  • Swift Tools 6.3.0
View More Packages from this Author

Dependencies

Last updated: Sun Oct 04 2026 18:57:47 GMT-0900 (Hawaii-Aleutian Daylight Time)