Can anyone tell me why the enclosed simple, but large, DEFLNG arithemetic does not give the correct answer? Is it a bug or can I just not calculate?
It happens with other large values but I cannot sus out a pattern except that Scale is a power of 2 & from my experience Floating Point errors usually occur at powers of 2.
I have replaced IF (OCCUR >= YPOINTS * Scale) by IF (OCCUR / Scale >= YPOINTS) & it works correctly.
This was happening with QB64 v0.980, so I came back here today to get the latest version, but it's still happening.