Top "Floating-accuracy" questions

Concerning the accuracy of operations performed on floating point numbers.

Why float.Epsilon and not zero?

In the following code, why is there a comparison against float.Epsilon and not 0? // Coroutine to move elements protected IEnumerator …

c# unity3d floating-accuracy
Why is the output of inv() and pinv() not equal in Matlab and Octave?

I have noticed that if A is a NxN matrix and it has the inverse matrix. But what the inv() …

matlab precision floating-accuracy matrix-inverse numerical-analysis
Latitude/Longitude storage and compression in C

Does anyone know the most efficient representation for lat/long coordinates? Accuracy level should be enough for consumer GPS devices. …

c compression gps floating-accuracy
Why 0.1 + 0.2 == 0.3 in D?

assert(0.1 + 0.2 != 0.3); // shall be true is my favorite check that a language uses native floating point arithmetic. C++ #include <cstdio&…

floating-point floating-accuracy d constantfolding
Set all BigDecimal operations to a certain precision?

My Java program is centered around high precision calculations, which need to be accurate to at least 120 decimal places. Consequentially, …

java math rounding bigdecimal floating-accuracy
C# wrong subtraction? 12.345 - 12 = 0.345000000000001

I am beginner in C# and I am working with floating point numbers. I need to do subtraction between these …

c# numbers floating-point floating-accuracy subtraction
Java - Faster alternative to Math.pow() and Math.sqrt()

My program uses Math.pow() to compute a relatively large double number to the power of 2. Later on I need …

java function math floating-accuracy pow
Dealing with accuracy problems in floating-point numbers

I was wondering if there is a way of overcoming an accuracy problem that seems to be the result of …

c++ floating-point floating-accuracy
Precision lost while using read_csv in pandas

I have files of the below format in a text file which I am trying to read into a pandas …

python csv pandas numpy floating-accuracy
Fast Exp calculation: possible to improve accuracy without losing too much performance?

I am trying out the fast Exp(x) function that previously was described in this answer to an SO question …

c# performance floating-accuracy exp