About 56 results
Open links in new tab
  1. c语言中float、double的区别和用法? - 知乎

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

  2. C语言中,double**和double (*) [5]有什么区别?怎么理解?

    Nov 24, 2019 · double** 是指向 double* 类型的指针类型。 区别不是很显然的吗? double [5] 类型能隐式转换成 double* 类型,但它们不是同一类型。 可以考虑一下 short 和 long 这两种类型是能相互隐式 …

  3. ¿Qué diferencia entre float y double en C++?

    Feb 10, 2022 · En double se pueden almacenar números más grandes y también más decimales. Con los números que has probado no se ve diferencia porque cout << redondea la representación interna …

  4. 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 seja muito mais …

  5. What is the difference between float and double? - Stack Overflow

    Mar 5, 2010 · 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 other does not seem …

  6. double 和 long double 有哪些区别? - 知乎

    The long double function prototypes are identical to the prototypes for their double counterparts, except that the longdouble data type replaces the double data type. The long double versions of these …

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

    Sep 12, 2011 · 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 function to set a …

  8. c - What's the different between `double (double)` and `double ...

    Aug 17, 2014 · double(double) is the type of a function taking a double and returning a double. double(*)(double) is a pointer to the above function type. As it happens, functions decay to pointers …

  9. 单精度与双精度是什么意思,有什么区别? - 知乎

    含义:表明单精度和双精度精确的范围不一样,单精度,也即float,一般在计算机中存储占用4字节,也32位,有效位数为7位;双精度(double)在计算机中存储占用8字节,64位,有效位数为16位。 原 …

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