就我所知,浮标可以准确反映14个数字。
So let s say we have
a = 564214623154
b = 54252
and we multiply this c=a*b and it should be 30609771735350808 but when compiled it shows me 3.0609771735351E+16 So as I understand it should lose some precision but when I divide c by a c/a I get 564214623154 exact result without any precision lost
另外一个例子让我们说:
c = 30609771735350808
d = 30609761111111111
e=c-d应为10624239697,但在汇编后,显示我为1062423969696,因此失去精确度
So is precision lost only when I subtract or add two numbers?
If it matters I use php