EMPOWERING PROGRAMS WITH MATH
Small Basic makes it for you to write programs that do math for you
You can write a program for simple
operations and math functions
What can you like Algebra (square root, absolute
value, and trigonometric functions).
do in Text
Window ? Small Basic’s Math object provides
these functions and many others.
Four Basic Math Operators
• +, –, *, and /
• The asterisk (*) represents multiplication
• The slash (/) represents division.
Displaying Numbers and Doing Math Anything to
WriteLine() in
• You can also use WriteLine() to display numbers. double
quotes, the
output
window
shows exactly
what’s inside
the quotes.
WriteLine() without
double quotes isn't parts
of a string.
Showing the difference between strings and numbers
Adding a number to text
• [Link]("Let's concatenate: 5 + 7 = " + 12)