About 36,900,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 …

  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 …

  3. integer - What exactly is a float? - Stack Overflow

    Apr 11, 2011 · This is the reason why we call them "floating point numbers" - we allow the decimal point to "float" depending on how big the number that we want to write is. Let's give an …

  4. What are the actual min/max values for float and double (C++)

    Feb 6, 2018 · Float's precision allows it to store a value of up to 9 digits (7 real digits, +2 from decimal to binary conversion) Double, like the name suggests can store twice as much …

  5. 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 …

  6. 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 …

  7. How are floating point numbers stored in memory? - Stack Overflow

    Oct 4, 2011 · To understand how they are stored, you must first understand what they are and what kind of values they are intended to handle. Unlike integers, a floating-point value is …

  8. python - Check if a number is int or float - Stack Overflow

    The questions is not particularly well put. Is the OP asking: 1) "What is the intrinsic Python variable type of the variable somenumber?" 2) Is somenumber a whole number? 3) Is …

  9. The real difference between float32 and float64 - Stack Overflow

    Jul 30, 2023 · I want to understand the actual difference between float16 and float32 in terms of the result precision. For instance, NumPy allows you to choose the range of the datatype you …

  10. How do I round a number to 2 decimal places in C?

    Aug 27, 2009 · You cannot properly round the number itself, because float (and double) aren't decimal floating-point - they are binary floating-point - so rounding to decimal positions is …