About 8,320 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. c - 'float' vs. 'double' precision - Stack Overflow

    The IEEE 754 standard (used by most compilers) allocates relatively more bits for the significand than the exponent (23 to 9 for float vs. 52 to 12 for double), which is why the precision is more …

  3. Should I use double or float? - Stack Overflow

    Jul 2, 2009 · The type double provides at least as much precision as float, and the type long double provides at least as much precision as double. So, all three can be the same size in …

  4. Float and double datatype in Java - Stack Overflow

    Dec 22, 2014 · The float data type is a single-precision 32-bit IEEE 754 floating point and the double data type is a double-precision 64-bit IEEE 754 floating point. What does it mean? And …

  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. ¿Qué diferencia entre float y double en C++?

    Feb 10, 2022 · ¿Qué diferencia entre float y double en C++? Sé que la precisión es doble en el caso del double, no la aprecio en la salida de la consola. También sé que float puede albergar …

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

  8. What exactly is the difference between 'float' and 'double' floating ...

    Oct 5, 2016 · Double just uses more bits than float, so double has more precision and range. In a CSV file, numbers are stored as text, for example using the five characters "27.37". Floating …

  9. types - Java: double vs float - Stack Overflow

    Sep 29, 2014 · By default, Java will treat a decimal (e.g. " 4.3 ") as a double unless you otherwise specify a float by adding an f after the number (e.g. " 4.3f "). You're having the same problem …

  10. c++ - double or float, which is faster? - Stack Overflow

    Double division and sqrt can be slower than float, as well as of course being significantly slower than multiply or add. (Float being smaller can mean fewer cache misses. And with SIMD, twice …