双精度赋值不成功
哪位帮我一下。在cvf的watch窗口中给一个双精度的变量赋值,结果都不成功,双精度的数自动变成单精度的了,请问是什么原因。如赋值2.89984789549,结果是2.899849884784
program test
real(8) a, b
a = 1.234567890123D0
b = 1.234567890123_8
print*,a,b
end program li913 发表于 2015-2-3 21:34
program test
real(8) a, b
a = 1.234567890123D0
什么意思呢? li913 发表于 2015-2-3 21:34
program test
real(8) a, b
a = 1.234567890123D0
明白什么意思了,谢谢 请赋值为 2.89984789549D0
页:
[1]