Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.

See all packages published by abdel-17.

abdel-17/rational-math 1.0.0

Rational numbers in Swift.

⭐️ 1

🕓 2 days ago

.package(url: "https://github.com/abdel-17/rational-math.git", from: "1.0.0")

This package provides `RationalModule`

for performing rational arithmetic.

- Add the following line to the dependencies in your
`Package.swift`

file:

```
.package(url: "https://github.com/abdel-17/rational-math", from: "1.0.0"),
```

- Add RationalModule as a dependency for your target:

```
.target(
name: "MyTarget",
dependencies: [
.product(name: "RationalModule",
package: "rational-math"),
"AnotherModule"
]),
```

- Add
`import RationalModule`

to your source code.

link |

Stars: 1 |

Last commit: 20 hours ago |

First version of this package!

2 days ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics