https://github.com/iolanguage/rational
https://github.com/iolanguage/rational
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/iolanguage/rational
- Owner: IoLanguage
- License: bsd-3-clause
- Created: 2018-03-11T11:59:40.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-16T18:04:37.000Z (about 8 years ago)
- Last Synced: 2025-01-21T00:48:45.297Z (over 1 year ago)
- Language: Io
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rational
Rational number.
Example use:
```Io
r1 := Rational with(1, 2) /* 1/2 */
r1 + r1 == Rational with(1, 1) /* true */
Rational with(1, 1) == Rational with(4, 4) /* true */
r2 := Rational with(1, 4)
r1 + r2 == 0.75 asRational
```
# Installation
```
eerie install https://github.com/IoLanguage/Rational.git
```