Most efforts have been put into Express BASIC lately, but I am still dedicated to updating Net Basic.
While working on Express BASIC, I found an issue with handling of negation. After fixing the issue, I have been updating all of our products including Net Basic and RP1.
Here's the updates we have made to Net Basic for now.
Improved handling of negation.
Added TAB() and CHR$() functions. (CHR$() is really important for nesting quotes when writing HTML, CSS, or other non Basic data.)
Added a new example.
The new example... really demonstrates the POWER of Net Basic!
Code: Select all
1 REM ported to Net Basic
2 REM from the DTSS emulator manual A BASIC OUTLINE
3 PRINT "Plot a happy little normal distribution curve"
4 HTML
5 PRINT "<div style = 'text-align: left;'>"
10 FOR x = -2 TO 2 STEP .1
30 PRINT TAB(INT(100 * (EXP(-(x ^ 2 / 2)) / SQR(2 * PI))));
31 GOSUB INT(RND * 10) * 10 + 50
32 PRINT "<br />"
40 NEXT x
45 PRINT "</div>
46 END
50 PRINT "π"
55 RETURN
60 PRINT "π"
65 RETURN
70 PRINT "π"
75 RETURN
80 PRINT "π"
85 RETURN
90 PRINT "π"
95 RETURN
100 PRINT "π
"
105 RETURN
110 PRINT "π"
115 RETURN
120 PRINT "π"
125 RETURN
130 PRINT "π"
135 RETURN
140 PRINT "π"
145 RETURN