Basicprogramming(.org) > SmallBASIC
What Happened?
B+:
Hi Chris,
Do you know why this no longer works?
--- Code: ---for i in seq(0, 2*pi, 360/15+1) do ? round(deg(i)), ((10000*sin(i))\1)*.0001
--- End code ---
At one time it printed out a SIN table, every 15 degrees.
chrisws:
It's a subtle bug related to internal data types. I was going to release an update sometime soon, so can include the fix.
Cheers,
Chris
B+:
OK
BTW I should mention the version 0,12,11 SDL Win 64 Dec 28, 2017.
I probably wrote the original line of code (mod by jasali) with version 12.9 or earlier.
ScriptBasic:
Chris,
Let me know if there is anything you need to support your board on the All BASIC forum.
B+:
Fixed!
--- Code: ---REM SmallBASIC "One statement SIN test"
REM created: 13/09/2018 seq test.bas B+
for i in seq(0, 360, 25) do ? "i = ";i;", rad(i) = ";rad(i);", sin(rad(i)) = ";sin(rad(i))
--- End code ---
So do you like the labeled Table?
Navigation
[0] Message Index
[#] Next page
Go to full version