https://github.com/fny/infinities
INFINITY ∞ for the infinitely lazy
https://github.com/fny/infinities
Last synced: 9 months ago
JSON representation
INFINITY ∞ for the infinitely lazy
- Host: GitHub
- URL: https://github.com/fny/infinities
- Owner: fny
- License: mit
- Created: 2015-04-28T00:02:45.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-28T01:56:12.000Z (about 11 years ago)
- Last Synced: 2025-09-02T06:26:31.232Z (10 months ago)
- Language: Ruby
- Homepage:
- Size: 137 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Infinities ∞
**INFINITY ∞ for the infinitely lazy.**
[](http://badge.fury.io/rb/infinities)
[](https://travis-ci.org/fny/infinities)
Annoyed by typing `Float::INFINITY`? Wish you could just use the word or symbol instead?
require 'infinities/symbols'
∞ # => Infinity
require 'infinities/words'
INFINITY # => Infinity
If you require `BigDecimal` before loading any infinities, you get more goodies:
require 'bigdecimal'
require 'infinities/symbols'
BIG∞ # => #
require 'infinities/words'
BIG_INFINITY # => #
*Note `BIG∞` is not available on Rubinius until a [certain issue is resolved](https://github.com/rubinius/rubinius/issues/3382).*
Require the whole shebang with `require 'infinites/all'`