Project

infinities

0.0
No commit activity in last 3 years
No release in over 3 years
Too lazy to type out Float::INFINITY or BigDecimal::INFINITY? ∞ = INFINITY = Float::INFINITY; BIG∞ = BIG_INFINITY = BigDecimal::INFINITY
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.7
~> 5.6.0
~> 10.0
 Project Readme

Infinities ∞

INFINITY ∞ for the infinitely lazy.

Gem Version Build Status

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∞ # => #<BigDecimal:2428b80,'Infinity',9(9)>

require 'infinities/words'
BIG_INFINITY # => #<BigDecimal:2428b80,'Infinity',9(9)>

Note BIG∞ is not available on Rubinius until a certain issue is resolved.

Require the whole shebang with require 'infinites/all'