https://github.com/jdan/ocaml-rationals
Rational numbers in OCaml
https://github.com/jdan/ocaml-rationals
Last synced: 8 months ago
JSON representation
Rational numbers in OCaml
- Host: GitHub
- URL: https://github.com/jdan/ocaml-rationals
- Owner: jdan
- Created: 2019-12-21T21:40:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-21T21:41:45.000Z (over 6 years ago)
- Last Synced: 2025-01-01T02:41:32.408Z (over 1 year ago)
- Language: OCaml
- Size: 1000 Bytes
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## ocaml-rationals
A small library for representing rational numbers `p / q` in OCaml.
### running
```
$ ocaml main.ml
5/121 = 1/25 + 1/757 + 1/763309 + 1/873960180913 + 1/1025410058030422033
```