7EMPOWERING PROGRAMS WITH MATH
If mathematics bores or scares you, that’s okay. You’ll soon realize how easy Small Basic makes it for you to write programs that do math for you. Many programs use only simple operations like addition, subtraction, multiplication, and division. For these types of problems, you need just the four basic math operators (+, –, *, and /). The asterisk (*) represents multiplication, and the slash (/) represents division.
Other programs need to use some of the math functions that you might have learned in algebra (like square root, absolute value, and trigonometric functions). Small Basic’s Math object provides these functions ...
Get Learn to Program with Small Basic now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.