Code:
DIM r1,r2 AS FLOAT
r1 = RND
r2 = (r1)
PRINT "r1=";r2
r2 = LN(r1)
PRINT "LN(r1)=";r2
LN(0.5) = positive!!!!! (solved)
|
Code: DIM r1,r2 AS FLOAT
10-08-2024, 08:25 PM
Yes, the LN computation was bugged. Thanks for detecting it.
Try this new beta version and let me know if it works ok: http://www.boriel.com/files/zxb/zxbasic-...a18.tar.gz http://www.boriel.com/files/zxb/zxbasic-...beta18.zip http://www.boriel.com/files/zxb/zxbasic-...-win32.zip http://www.boriel.com/files/zxb/zxbasic-...x64.tar.gz http://www.boriel.com/files/zxb/zxbasic-...cos.tar.gz
10-08-2024, 10:58 PM
Works.
Thanks. Í used this command: C:> ZXBC -taB Test.bas WARNING: deprecated flag --tap (use --output-format=tap instead) Should I use another command?
10-09-2024, 06:56 AM
You can still use the old one, but from here to 12 months, the old one will be removed.
10-09-2024, 09:25 AM
At
https://zxbasic.readthedocs.io/en/latest/zxb/ where is -H HEAP_SIZE, --heap-size HEAP_SIZE --heap-size HEAP_ADDRESS should be -H HEAP_SIZE, --heap-size HEAP_SIZE --heap-address HEAP_ADDRESS
10-09-2024, 09:36 PM
Ok, I have updated the command line output
(still need to update the executable names, since zxb is now zxbc). Also, please, better open a new thread for a different issue. This way we can close what is already done. Also, I have created a Github Bug report form: https://github.com/boriel-basic/zxbasic/...new/choose |
« Next Oldest | Next Newest »
|