About 22,600,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. Should I use double or float? - Stack Overflow

    Jul 2, 2009 · 1 The main difference between float and double is precision. Wikipedia has more info about Single precision (float) and Double precision.

  3. What is the inclusive range of float and double in Java?

    Nov 5, 2013 · What is the inclusive range of float and double in Java? Why are you not recommended to use float or double for anything where precision is critical?

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

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

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

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

  7. c - 'float' vs. 'double' precision - Stack Overflow

    Also, the number of significant digits can change slightly since it is a binary representation, not a decimal one. Single precision (float) gives you 23 bits of significand, 8 bits of exponent, and 1 …

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

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