swift-numerals
Numerals is a package containing additional numeric types for the Swift programming language.
Contents
The package currently provides the following implementations:
UInt4
: A 4-bit unsigned integer value type.
Int4
: A 4-bit signed integer value type.
Roman
: A representation of a roman numeral.
Installation
To use this package in a SwiftPM project:
- Add it to the dependencies in your
Package.swift
file:
let package = Package(
...
dependencies: [
.package(url: "https://github.com/alexandrehsaad/swift-numerals.git", branch: "main")
],
...
)
- Add it as a dependency for your target in your
Package.swift
file:
let package = Package(
...
targets: [
.target(name: "MyTarget", dependencies: [
.product(name: "Numerals", package: "swift-numerals")
]),
],
...
)
- Import the package in your source code.
import Numerals
Contribution
Reporting a bug
If you find a bug, please open a bug report.
Contacting the maintainers
The current code owner of this package is Alexandre H. Saad (@alexandrehsaad). You can contact him by writing an email to alexandresaad at icloud dot com.
Supporting
If you like our work, show your support by staring this repository.
Feedback
We would love to hear your thoughts or feedback on how we can improve Swift Arithmetics!