remy/vscode-nextbasic

PRINT 1e6 fails

remy opened this issue · 2 comments

remy commented

Exponential numbers don't parse correctly.

Reference - see numbers after 0x0e - they're the same, when the second number should be 1000000

echo "1 print 1\n10 print 1e6" | txt2bas | hexdump -C
00000000  50 4c 55 53 33 44 4f 53  1a 01 00 9c 00 00 00 00  |PLUS3DOS........|
00000010  1c 00 00 00 1c 00 00 00  00 00 00 00 00 00 00 00  |................|
00000020  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000070  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 4c  |...............L|
00000080  00 01 09 00 f5 31 0e 00  00 01 00 00 0d 00 0a 0b  |.....1..........|
00000090  00 f5 31 65 36 0e 00 00  01 00 00 0d              |..1e6.......|
0000009c
remy commented

Not live yet, but coming in the next release.

remy commented

Live now.