About 26,000,000 results
Open links in new tab
  1. What is the difference between float and double? - Stack Overflow

    Mar 5, 2010 · With type float, on the other hand, alarming-looking issues with roundoff crop up all the time. And the thing that's not necessarily different between type float and double is execution speed.

  2. How to correctly and standardly compare floats? - Stack Overflow

    Note that float can approximately represent the latter and still smaller values - it's just about 7 decimals of precision after the first nonzero digit! If you're going to use a fixed epsilon, you should really choose it according to the requirements of the particular piece of code where you use it.

  3. Ranges of floating point datatype in C? - Stack Overflow

    Apr 11, 2012 · float has 24 significant binary digits - which depending on the number represented translates to 6-8 decimal digits of precision. double has 53 significant binary digits, which is approximately 15 decimal digits. Another answer of mine has further explanation if …

  4. Should I use double or float? - Stack Overflow

    Jul 2, 2009 · 1 The main difference between float and double is precision. Wikipedia has more info about Single precision (float) and Double precision.

  5. Why are floating point numbers inaccurate? - Stack Overflow

    Why do some numbers lose accuracy when stored as floating point numbers? For example, the decimal number 9.2 can be expressed exactly as a ratio of two decimal integers (92/10), both of which can be

  6. floating point - What range of numbers can be ... - Stack Overflow

    For a given IEEE-754 floating point number X, if 2^E <= abs(X) < 2^(E+1) then the distance from X to the next largest representable floating point number (epsilon) is: epsilon = 2^(E-52) % For a 64-bit float (double precision) epsilon = 2^(E-23) % For a 32-bit float (single precision) epsilon = 2^(E-10) % For a 16-bit float (half precision) The above equations allow us to compute the …

  7. Python : TypeError: 'float' object is not iterable - Stack Overflow

    Sep 26, 2018 · Python : TypeError: 'float' object is not iterable Asked 6 years, 9 months ago Modified 6 years, 9 months ago Viewed 17k times

  8. java - What is the difference between the float and integer data …

    Jan 26, 2011 · float stores floating-point values, that is, values that have potential decimal places int only stores integral values, that is, whole numbers So while both are 32 bits wide, their use (and representation) is quite different. You cannot store 3.141 in an integer, but you can in a float. Dissecting them both a little further: In an integer, all bits except the leftmost one are used to …

  9. TypeError: 'float' object is not callable - Stack Overflow

    Mar 26, 2014 · There is an operator missing, likely a *: -3.7 need_something_here (prof[x]) The "is not callable " occurs because the parenthesis -- and lack of operator which would have switched the parenthesis into precedence operators -- make Python try to call the result of -3.7 (a float) as a function, which is not allowed. The parenthesis are also not needed in this case, the following …

  10. Difference between decimal, float and double in .NET?

    Mar 6, 2009 · What is the difference between decimal, float and double in .NET? When would someone use one of these?