Top "Floating-accuracy" questions

Concerning the accuracy of operations performed on floating point numbers.

Math.Pow taking an integer value

From http://msdn.microsoft.com/en-us/library/system.math.pow.aspx int value = 2; for (int power = 0; power <= 32; power++) Console.…

c# floating-accuracy pow
Why does the floating-point value of 4*0.1 look nice in Python 3 but 3*0.1 doesn't?

I know that most decimals don't have an exact floating point representation (Is floating point math broken?). But I don't …

python floating-point rounding floating-accuracy ieee-754
Whats the largest denormalized and normalized number?(64bit, IEE 754-1985)

I am struggeling with floating point arithmetic, because I really want to understand this topic! I know that the numbers …

floating-point binary floating-accuracy ieee-754 denormalization
Handle decimal numbers in mysqli

I have to put the price of some items inside a mysql table. When creating the table I'm using DECIMAL(10,2) …

php floating-point mysqli floating-accuracy floating-point-precision
numpy 1.9.0: ValueError: probabilities do not sum to 1

I have a large code that at one point samples values from an array according to the probabilities taken from …

python arrays numpy random floating-accuracy
High numerical precision floats with MySQL and the SQLAlchemy ORM

I store some numbers in a MySQL using the ORM of SQLAlchemy. When I fetch them afterward, they are truncated …

python mysql orm sqlalchemy floating-accuracy
Does "epsilon" really guarantees anything in floating-point computations?

To make the problem short let's say I want to compute the expression a / (b - c) on floats. To …

floating-point floating-accuracy epsilon
Highcharts Pie Chart ignores percentageDecimals tooltip setting and has floating point inaccuracy issue

Highcharts 3.0 seems to have floating point number accuracy issue when displaying tooltips on a pie chart. I was able to …

highcharts decimal percentage pie-chart floating-accuracy
php intval() and floor() return value that is too low?

Because the float data type in PHP is inaccurate, and a FLOAT in MySQL takes up more space than an …

php floating-accuracy rounding-error
Is it possible to get 0 by subtracting two unequal floating point numbers?

Is it possible to get division by 0 (or infinity) in the following example? public double calculation(double a, double b) { …

floating-point double floating-accuracy ieee-754