Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexknauth/exact-decimal-lang
a racket lang-extension that reads decimals as exact rationals by default
https://github.com/alexknauth/exact-decimal-lang
racket
Last synced: about 1 month ago
JSON representation
a racket lang-extension that reads decimals as exact rationals by default
- Host: GitHub
- URL: https://github.com/alexknauth/exact-decimal-lang
- Owner: AlexKnauth
- License: mit
- Created: 2015-02-25T22:10:37.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-09-29T20:35:46.000Z (over 1 year ago)
- Last Synced: 2024-10-16T02:55:20.494Z (3 months ago)
- Topics: racket
- Language: Racket
- Homepage:
- Size: 11.7 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
exact-decimal-lang
===
a racket lang-extension that reads decimals as exact rationalsdocumentation: http://pkg-build.racket-lang.org/doc/exact-decimal-lang/index.html
`raco pkg install exact-decimal-lang`
For example, `#lang exact-decimal racket/base` is a language like `racket/base`, except that
decimals like `0.1` read as exact rationals, in this case `1/10`.
You can still specify inexact numbers with `#i` though.```racket
#lang exact-decimal racket/base
0.1
```
produces `1/10`