Of course I am aware of the limitations of the floating point representation of real numbers, but I did expect the following to produce the same results.
Code: Select all
y.d = 0.333333333333333
Debug y
Debug "======="
a$ = "0.333333333333333"
x.d = ValD(a$)
Debug xI came across it because I coded my own version of ValD() which does a little more than PB's function. It does produce identical results to ValD() however. I've looked at the ASM generated by PB and can see that the difference is in the lower 32-bits of the 64-bit value.
Does this inconsistency equate to a bug or is it something I just have to accept?
Thanks.


