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

    Mar 5, 2010 · 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 …

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

  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 …

  4. How to use % operator for float values in c - Stack Overflow

    How to use % operator for float values in c Asked 14 years, 1 month ago Modified 7 years, 11 months ago Viewed 73k times

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

    Jul 5, 2023 · Usually, float and double are binary32 and binary64 types respectively, and long double is binary128, an x87 80-bit extended floating-point number, or represented same as …

  6. Why dividing two integers doesn't get a float? [duplicate]

    They may be equal, but usually, a float is a 32-bit type with 24 bits of precision, the largest finite number it can store is 3.4028235e38, the smallest positive number 1.0e-45, while double is a …

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

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

  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. python - range () for floats - Stack Overflow

    Dec 6, 2015 · I think that there is a very simple answer that really emulates all the features of range but for both float and integer. In this solution, you just suppose that your approximation …