Page 1 of 1

[BUG-v6b7] MY_BIGNUM <> ValD(#MY_BIGNUM)

Posted: Wed May 18, 2022 4:02 pm
by skywalk
Why are DOUBLE numeric assignments <> ValD("same number")?
Can the compiler make them more equivalent?
For very large numbers this is a big error.

Code: Select all

rs = 24
#MY_CONST = 9.9e37
MY_CONSTv.d = 9.9e37
r$ = "9.9e37"
Debug "9.9e37   = " + LSet(StrD(ValD(r$),16),rs)
Debug "#9.9e37  = " + LSet(StrD(#MY_CONST,16),rs)
Debug "DIFF     = " + LSet(StrD(ValD(r$) - #MY_CONST,16),rs)
Debug "9.9e37   = " + LSet(StrD(ValD(r$),16),rs)
Debug "v9.9e37  = " + LSet(StrD(MY_CONSTv,16),rs)
Debug "DIFFv    = " + LSet(StrD(ValD(r$) - MY_CONSTv,16),rs)

Re: [BUG-v6b7] MY_BIGNUM <> ValD(#MY_BIGNUM)

Posted: Sat Jun 25, 2022 9:05 pm
by Andre
Is this really a documentation issue? Or more a compiler behaviur, which should be checked by Fred.... anyway an answer of Fred is needed here I think....