Top "Floating-accuracy" questions

Concerning the accuracy of operations performed on floating point numbers.

Greater than or equal for floats failed

I was running a small python test I wrote against some data and got some weird results. Boiled it down …

python floating-accuracy floating
Check if a number is rational in Python, for a given fp accuracy

I would like to know a good way of checking if a number x is a rational (two integers n,…

python algorithm math floating-point floating-accuracy
python floating number

i am kind of confused why python add some additional decimal number in this case, please help to explain >&…

python floating-point numerical floating-accuracy
Would float point format be affected by big-endian and little endian?

I know the integer format would be different between big-endian machine and little-endian machine, is it the same for float …

c++ c floating-accuracy
Precision loss from float to double, and from double to float?

float fv = orginal_value; // original_value may be any float value ... double dv = (double)fv; ... fv = (float)dv; SHOULD fv …

c++ c floating-accuracy
If dealing with money in a float is bad, then why does money_format() do it?

I've been waffling on how to deal with currency display and math in PHP, and for a long time have …

php floating-point currency floating-accuracy money-format