Byzantine Reality

Searching for Byzantine failures in the world around us

Rubyistas: You May Need This One Day

If you happen to be implementing some old-school algorithms, you may find that you need something like infinity. But don’t fret – Ruby has that right at your disposal! Just try this:

>> inf = 1.0 / 0
=> Infinity
>> 10000000 < inf
=> true

And you’re good to go! Of course, this won’t be useful in most contexts, but keep it in your Ruby programming belt for just the right occasion!