Top "Infinity" questions

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

Using Double.POSITIVE_INFINITY in Java to find minimum value

Simple question: will the following code work for finding the minimum value in an array of doubles (assume at least …

java double min minimum infinity
C# converting to double returns infinity

I have a method: public void StoreNumberInSmallestType(ValueType number) { if (numberTypes == null) numberTypes = new List<Type>() { typeof(sbyte), …

c# double converter infinity typedescriptor
Is there any way to programmatically set the camera focus off an iOS device to infinity?

I am creating an app that locks the camera focus for video recording purposes. I want to lock the focus …

ios camera focus infinity
How to make an integer larger than any other integer?

Note: while the accepted answer achieves the result I wanted, and @ecatmur answer provides a more comprehensive option, I feel …

python python-3.x infinity
glsl infinity constant

Does GLSL have any pre-defined constants for +/-infinity or NaN? I'm doing this as a workaround but I wonder if …

glsl infinity
When to use NaN or +/-Infinity?

What are the benefits of NaN, PositiveInfinity or NegativeInfinity for float and double? When should we use or avoid them? …

c# nan infinity
How are NaN and Infinity of a float or double stored in memory?

As I understand it java will store a float in memory as a 32 bit integer with the following properties: The …

java nan infinity
How to store infinity in a BigDecimal (Java)?

I am writing algorithms inside methods that return BigDecimal values but now and again the result calculated will be + or …

java algorithm exception bigdecimal infinity
JSON.stringify converting Infinity to null

I have JavaScript Object say: var a = {b: Infinity, c: 10}; When I do var b = JSON.stringify(a); it returns …

javascript json infinity stringify
Infinity symbol does not show in Matlab plot

I'm trying to include the infinity symbol ∞ in my axis label (e.g. the expression δ∞), so I typed \delta_{\infty}. …

matlab latex tex axis-labels infinity