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

    Dec 31, 2021 · I've read about the difference between double precision and single precision. However, in most cases, float and double seem to be interchangeable, i.e. using one or the other does not …

  2. 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 example in decimal …

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

    Apr 11, 2012 · The values for the float data type come from having 32 bits in total to represent the number which are allocated like this: 1 bit: sign bit 8 bits: exponent p 23 bits: mantissa The exponent …

  4. What is the point of float('inf') in Python? - Stack Overflow

    Dec 14, 2015 · Just wondering over here, what is the point of having a variable store an infinite value in a program? Is there any actual use and is there any case where it would be preferable to use foo = …

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

    Oct 4, 2011 · The float type matches the IEC 60559 single format. The double type matches the IEC 60559 double format. The long double type matches an IEC 60559 extended format. in C++, use the …

  6. c - What is the difference between float, _Float32, _Float32x, and ...

    Jul 5, 2023 · Are they distinct types, or can they be aliases for float? What is the minimum range and precision of these types? Are they required to be IEEE-754-compliant (or IEC 60559)? Is float …

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

  8. .net - Converting string to float in C# - Stack Overflow

    Jun 26, 2012 · 4 The precision of float is 7 digits. If you want to keep the whole lot, you need to use the double type that keeps 15-16 digits. Regarding formatting, look at a post about formatting doubles. …

  9. How many digits can float8, float16, float32, float64, and float128 ...

    Jun 9, 2019 · Numpy's dtype documentation only shows "x bits exponent, y bits mantissa" for each float type, but I couldn't translate that to exactly how many digits before/after the decimal point. …

  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?