About 11,700,000 results
Open links in new tab
  1. floating point - What range of numbers can be ... - Stack Overflow

    For floating-point integers (I'll give my answer in terms of IEEE double-precision), every integer between 1 and 2^53 is exactly representable. Beyond 2^53, integers that are exactly …

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

    May 9, 2012 · 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 …

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

  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 …

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

  7. returning a float value when writing a function in C

    Oct 8, 2014 · I am writing a simple function in c that will return the middle of 2 float values. My function looks like this: float mid (float a, float b) { return (a + b)*0.5; } The problem is that this

  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. 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 74k times

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