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

    The 53 bits of double s give about 16 digits of precision. The 24 bits of float s give about 7 digits of precision.

  3. Correct format specifier for double in printf - Stack Overflow

    L Specifies that a following a, A, e, E, f, F, g, or G conversion specifier applies to a long double argument. The same rules specified for fprintf apply for printf, sprintf and similar functions.

  4. java - Cast Double to Integer - Stack Overflow

    494 A Double is not an Integer, so the cast won't work. Note the difference between the Double class and the double primitive. Also note that a Double is a Number, so it has the method …

  5. c++ - double and accuracy - Stack Overflow

    Jun 19, 2012 · A double which is usually implemented with IEEE 754 will be accurate to between 15 and 17 decimal digits. Anything past that can't be trusted, even if you can make the …

  6. Integer division: How do you produce a double? - Stack Overflow

    double num = 5; That avoids a cast. But you'll find that the cast conversions are well-defined. You don't have to guess, just check the JLS. int to double is a widening conversion. From §5.1.2: …

  7. Difference between long double and double in C and C++

    Apr 22, 2015 · Possible Duplicate: long double vs double I am new to programming and I am unable to understand the difference between between long double and double in C and C++. I …

  8. How do I print a double value with full precision using cout?

    In my earlier question I was printing a double using cout that got rounded when I wasn't expecting it. How can I make cout print a double using full precision?

  9. How can I escape double quotes in a string? - Stack Overflow

    A similar question for C/C++ (as this may be the top search engine hit): How can I get double quotes into a string literal?

  10. java - Double vs. BigDecimal? - Stack Overflow

    Aug 5, 2010 · There are two main differences from double: Arbitrary precision, similarly to BigInteger they can contain number of arbitrary precision and size (whereas a double has a …