About 36,000,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. Qual a forma correta de usar os tipos float, double e decimal?

    Jul 10, 2017 · float e double são mais rápidos, eficientes e econômicos do que os BigDecimal s do Java; não posso afirmar muito sobre o Decimal do C#, mas creio que para multiplicação …

  3. java - Round a double to 2 decimal places - Stack Overflow

    May 11, 2010 · For example, double value is 3.72 and if I use format() function, new double value changes 3,72 and If I wanna set this new value to double property, it will be throwed exception …

  4. c语言中float、double的区别和用法? - 知乎

    C语言中,float和double都属于 浮点数。区别在于:double所表示的范围,整数部分范围大于float,小数部分,精度也高于float。 举个例子: 圆周率 3.1415926535 这个数字,如果用float …

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

    Dec 17, 2020 · 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?

  6. What is the difference between the | and || or operators?

    Aug 29, 2008 · The double pipe "||" is a logical or, and can be used in logical statements, like "x == 0 || x == 1". Here's an example of what the bitwise or does: if a=0101 and b=0011, then …

  7. How can I add double quotes to a string that is inside a variable?

    Oct 11, 2010 · I have a string variable such as this: string title = string.empty; I have to display the content of whatever is passed to it inside a div within double quotes. I have written something …

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

  9. How to Code Double Quotes via HTML Codes - Stack Overflow

    Feb 28, 2013 · So my conditioning has always been to utilize html codes as a practice for content creation. I was just curious as to why there needs to be 3 different ways to code a double …

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