约 14,700,000 个结果
在新选项卡中打开链接
  1. What is the difference between float and double? - Stack Overflow

    2021年12月31日 · 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. Correct format specifier for double in printf - Stack Overflow

    Format %lf in printf was not supported in old (pre-C99) versions of C language, which created superficial "inconsistency" between format specifiers for double in printf and scanf.

  3. c++ - Double precision - decimal places - Stack Overflow

    2017年10月20日 · From what I have read, a value of data type double has an approximate precision of 15 decimal places. However, when I use a number whose decimal representation …

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

  5. What is the difference between "Double" and "double" in Java?

    So when should I use Double and when to use double? Thank you @F505 I would recommend double when just doing basic floating point computation. If there is a lot of string conversion …

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

    2015年4月22日 · 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 …

  7. Biggest integer that can be stored in a double - Stack Overflow

    2009年12月5日 · The biggest/largest integer that can be stored in a double without losing precision is the same as the largest possible value of a double. That is, DBL_MAX or …

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

  9. What does the !! (double exclamation mark) operator do in …

    The double "not" in this case is quite simple. It is simply two not s back to back. The first one simply "inverts" the truthy or falsy value, resulting in an actual Boolean type, and then the …

  10. How do I get DOUBLE_MAX? - Stack Overflow

    1) As others pointed out, you don't need a double, you need a 64-bit integral type (either long long, or uint64_t). 2) If you do use a double, you don't need DBL_MAX (which is the largest …