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
When to use `std::hypot(x,y)` over `std::sqrt(x*x + y*y)`

The documentation of std::hypot says that: Computes the square root of the sum of the squares of x and …

c++ c++11 floating-accuracy
MySQL "greater than" condition sometimes returns row with equal value

I'm running into a baffling issue with a basic MySQL query. This is my table: id | rating 1 | 1317.17 2 | 1280.59 3 | 995.12 4 | 973.88 Now, I'm attempting …

mysql floating-point floating-accuracy floating-point-conversion
binary_accuracy in keras Metrices , what's the threshold value to predicted one sample as positive and negative cases

What's the threshold value of binary_accuracy in keras Metrices is used to predicted one sample as positive and negative …

keras floating-accuracy threshold