AppleSoft BASIC: How to round numbers
There is no rounding function in AppleSoft BASIC, but there is a formula you can enter to get the same effect. It's described on page 18 of the old AppleSoft BASIC Programming Reference Manual.
Here's the formula:
X = INT(X*10^D+.5)/INT(10^D+.5)
where D is the number of decimal places.
Published Date: Feb 19, 2012
Still need help?