Hi there,
I happened to find a interesting problem when dealing with type conversion. Please see my code below (result marked in red)
(2 xexp 60)- (2 xexp 60) + 16f
0f
(2 xexp 10)- (2 xexp 10) + 16f
-16f
(7h$(2 xexp 60))- (7h$(2 xexp 60)) + 16f
0f
(7h$(2 xexp 60))- (7h$(2 xexp 60)) + 16
-16j
(7h$(2 xexp 10))- (7h$(2 xexp 10)) + 16f
-16f
From my understanding, all the code above should return a value of -16 regardless of datatypes. However the first and third line of code obviously return a different result.
It seems that type conversion on big numbers will somehow result in loss of accuracy?
Could someone explain this to me? Hope it is not a stupid mistake made by me.
Thanks,
Xinyu