# \#rational-numbers

**URL:** https://forums.swift.org/tag/rational-numbers/947.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [Expressing integers as prime products](https://forums.swift.org/t/expressing-integers-as-prime-products/91047)

<div class="topic-metadata">

**Author:** [@mchg](https://forums.swift.org/u/mchg)\
**Replies:** 4\
**Last updated:** [November 25, 2026, 1:34am UTC](https://forums.swift.org/t/expressing-integers-as-prime-products/91047 "2026-11-25T01:34:14Z")

</div>

Hi all, this is a pre-announcement just in case anyone else is interested in this topic. Over the past few years I've been developing some work on integers and rationals as prime products. It's atypical because it requi…

---

## [Swift Rational - Swift package for working with rational numbers](https://forums.swift.org/t/swift-rational-swift-package-for-working-with-rational-numbers/69344)

<div class="topic-metadata">

**Author:** [@abdel-17](https://forums.swift.org/u/abdel-17)\
**Replies:** 41\
**Last updated:** [January 19, 2024, 6:05pm UTC](https://forums.swift.org/t/swift-rational-swift-package-for-working-with-rational-numbers/69344 "2024-01-19T18:05:53Z")

</div>

Swift Rational provides the RationalModule module for working with rational numbers in Swift. RationalModule exports the Rational struct. It conforms to standard Swift protocols like AdditiveArithmetic, Numeric, Hashabl…
