These are based on the IEEE 754 standard, which defines a binary standard for 32-bit floating point and 64-bit double precision floating point binary-decimal Numbers.
它们都依据IEEE 754标准,该标准为32位浮点和64位双精度浮点二进制小数定义了二进制标准。
On a 64-bit system, integral types are converted to 64-bit integral types, and single precision floating point types are promoted to double precision.
在 64 位系统上,整型被转换成 64 位的整型值,单精度的浮点类型被转换成双精度的浮点类型。
Mathematically precise calculations can be thrown severely askew by small round-off errors caused by finite-precision floating-point Numbers.
由有限精度浮点数字引起的很小的舍入错误就会严重歪曲数学精度计算。
So it turns out there's a solution to this: If you need more precision, more digits after the decimal point than a float allows, what do you go for instead?
所以这里有一个解决方案:,如果你需要比float类型允许的更高精度,小数点后更多位数,那你该用什么取代它?
应用推荐