Top "Infinity" questions

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

How to represent integer infinity?

I need a way to represent an integer number that can be infinite. I'd prefer not to use a floating …

c# infinity
How to find max value for Double and Float in Swift

Current learning Swift, there are ways to find max and min value for different kind of Integer like Int.max …

swift floating-point int double infinity
What are the INFINITY constants in Java, really?

I just recently ran across the constants in the primitive type wrapper classes like Double.POSITIVE_INFINITY and Double.NEGATIVE_…

java constants bits infinity
Modeling infinity for the largest double value

The question is about modeling infinity in C++ for the double data type. I need it in a header file, …

c++ double infinity
How do you check for infinite and indeterminate values in C++?

In my programs infinity usually arises when a value is divided by zero. I get indeterminate when I divide zero …

c++ visual-c++ floating-point nan infinity
Represent infinity as an integer in Python 2.7

I am wondering how to define inf and -inf as an int in Python 2.7. I tried and it seems inf …

python python-2.7 infinity
How to generate NaN, -Infinity and +Infinity in ANSI C?

I use ANSI C89 (not C++), and I want to generate NaN, -Infinity and +Infinity. Is there any standard way (…

c nan c89 infinity
In JavaScript, why does zero divided by zero return NaN, but any other divided by zero return Infinity?

It seems to me that the code console.log(1 / 0) should return NaN, but instead it returns Infinity. However this code: …

javascript math floating-point nan infinity
In what contexts do programming languages make real use of an Infinity value?

So in Ruby there is a trick to specify infinity: 1.0/0 => Infinity I believe in Python you can do something …

python ruby language-agnostic idioms infinity
how to remove positive infinity from numpy array...if it is already converted to a number?

How does one remove positive infinity numbers from a numpy array once these are already converted into a number format? …

python numpy infinity graph-tool