About 19,400,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. Biggest integer that can be stored in a double - Stack Overflow

    Dec 5, 2009 · 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 approximately 1.8 × …

  3. How do I use bitwise operators on a "double" on C++?

    Now by accessing elements c[0] through c[sizeof(double) - 1] you will see the internal representation of type double. You can use bitwise operations on these unsigned char values, …

  4. What are the actual min/max values for float and double (C++)

    Feb 6, 2018 · For double, this is 2 1024 −2 971, approximately 1.79769•10 308. std::numeric_limits<T>::min() is the smallest positive normal value. Floating-point formats …

  5. c++ - what's a variable with & -> double& - Stack Overflow

    Sep 12, 2011 · 5 double& is just a double passed by reference. In VB.NET, it would be declared ByRef dec_deg as Double. EDIT: However, I would recommend instead of using a void …

  6. What's the difference between a single precision and double …

    The term double precision is something of a misnomer because the precision is not really double. The word double derives from the fact that a double-precision number uses twice as many bits …

  7. What is the size of float and double in C and C++? [duplicate]

    Aug 27, 2014 · The set of values of the type float is a subset of the set of values of the type double; the set of values of the type double is a subset of the set of values of the type long …

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

  9. minimum double value in C/C++ - Stack Overflow

    Jul 20, 2009 · Is there a standard and/or portable way to represent the smallest negative value (e.g. to use negative infinity) in a C(++) program? DBL_MIN in float.h is the smallest positive …

  10. Does double have a greater range than long? - Stack Overflow

    Oct 23, 2012 · A simple answer is that double is only accurate to 15-16 total digits, as opposed to long which (as an integer type) has an absolute accuracy within an explicit digit limit, in this …