Number accuracy
Posted: Tue Jan 17, 2017 2:14 pm
George said in viewtopic.php?f=20&t=1732
with the following output:
I corrected the manual. Thanks George 
To be sure I made the following test:Our manual is still wrong. We are able to do 2^53, not 2^52.
Code: Select all
'Number accuracy
n=2^53
n$="2^53"
print n$&"=";"#":n,"= HEX"&"""0"&HEX$(n)&""""
print "-"&n$&"=";"#":-n
print n$&"-1=";"#":n-1,"= HEX"&"""0"&HEX$(n-1)&""""
PRINT "Wrong result:"
'The following gives wrong result
print n$&"+1=";"#":n+1,"= HEX"&"""0"&HEX$(n+1)&""""
