About 22,100,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 …

  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. How to use % operator for float values in c - Stack Overflow

    How to use % operator for float values in c Asked 14 years, 2 months ago Modified 8 years ago Viewed 74k times

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

  6. comparing float/double values using == operator - Stack Overflow

    The code review tool I use complains with the below when I start comparing two float values using equality operator. What is the correct way and how to do it? Is there a helper function …

  7. Difference between (float *) & *(float*) in C - Stack Overflow

    Jun 4, 2015 · casting to float * here is not meaningful, because the void * address is the same as the float * address and also the int * address, the difference would be when you do pointer …

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

  9. How do I convert all of the items in a list to floats?

    [float(i) for i in lst] to be precise, it creates a new list with float values. Unlike the map approach it will work in py3k.

  10. Why would you use float over double, or double over long double?

    Feb 6, 2014 · I understand that float has a smaller range than double making it less precise, and from what I understand, long double is even more precise (?). So my question is why would …