Top "Infinity" questions

Infinity is a specific floating point value that is always larger than any other floating point value.

How can I represent an infinite number in Python?

How can I represent an infinite number in python? No matter which number you enter in the program, no number …

python infinite infinity
How to implement infinity in Java?

Does Java have anything to represent infinity for every numerical data type? How is it implemented such that I can …

java double infinity
Setting an int to Infinity in C++

I have an int a that needs to be equal to "infinity". This means that if int b = anyValue; a&…

c++ infinity
Python Infinity - Any caveats?

So Python has positive and negative infinity: float("inf"), float("-inf") This just seems like the type of feature that …

python infinity
Infinity symbol with HTML

How can I display an infinity symbol (like the one in the picture) using HTML?

html html-entities infinity
Infinite integer in Python

Python 3 has float('inf') and Decimal('Infinity') but no int('inf'). So, why a number representing the infinite set of …

python python-3.x math infinity
Replace -inf with zero value

I have an array: x = numpy.array([-inf, -inf, 37.49668579]) Is there a way to change the -inf values to just 0?

python arrays numpy infinity
Testing for positive infinity, or negative infinity, individually in Python

math.isinf() tests for positive or negative infinity lumped together. What's the pythonic way to test for them distinctly? Ways …

python infinity
How do I check if a number evaluates to infinity?

I have a series of Javascript calculations that (only under IE) show Infinity depending on user choices. How does one …

javascript infinity
How to express infinity in Ruby?

Is there a keyword to express Infinity in Ruby?

ruby infinity