java - Java Float/Double 和 VB.NET 的 Float/Double 有区别吗

标签 java .net floating-point

Java Float/Double 类型和 VB.NET 的 Float/Double 类型有区别吗?

编辑:它们都使用相同的规范吗? (IEEE 754)

最佳答案

VB-Double

Holds signed IEEE 64-bit (8-byte) double-precision floating-point numbers that range in value from -1.79769313486231570E+308 through -4.94065645841246544E-324 for negative values and from 4.94065645841246544E-324 through 1.79769313486231570E+308 for positive values. Double-precision numbers store an approximation of a real number.

Java-Double

The double data type is a double-precision 64-bit IEEE 754 floating point. Its range of values is beyond the scope of this discussion, but is specified in the Floating-Point Types, Formats, and Values section of the Java Language Specification. For decimal values, this data type is generally the default choice.

关于java - Java Float/Double 和 VB.NET 的 Float/Double 有区别吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16979057/

相关文章:

java - 等待多个回调发生后再继续

java - 运行tomcat时Manifest主要属性的签名文件摘要无效

java - JComboBox 未出现在窗口中

c# - 使用 C# 进行 JSON-RPC HTTP 调用

c# - .NET 4.x 有重大更改 : Release mode does NOT execute static initializers properly if first call is to default ctor during deserialization

c# - 使用诊断 C# 终止正在运行的最旧进程

javascript - 在 JavaScript 中,为什么零除以零返回 NaN,而任何其他除以零返回 Infinity?

C++ 附加身份不安全示例 (a+0.0 != a)

java - strace Java 小程序

c - 奇怪的 printf 输出