Porting BASIC programs, this is why I hate operator precedence:
INT(F(I)/6^(7-C)+.1)
WTF.
So if I test with F(I)=10, C=3, Chipmunk BASIC says:
?(10/6^(7-3)+.1)
0.107716
Maybe that's right?
Rewrite for TinyBasicWeb as
?(10/(6^(7-3))+0.1)
0.10771604938271606
In Scheme, it's the bluntly obvious:
(+ (/ 10 (expt 6 (- 7 3))) 0.1)
0.10771604938271606
MATHEMATICIANS: NOT EVEN ONCE.
#retrocomputing #basic