Lingo Dictionary > Symbols > + (addition) |
![]() ![]() ![]() |
+ (addition)
Syntax
expression1
+
expression2
Description
Math operator; performs an arithmetic sum on two numerical expressions. If both expressions are integers, the sum is an integer. If either or both expressions are floating-point numbers, the sum is a floating-point number.
This is an arithmetic operator with a precedence level of 4.
Example
This statement adds the integers 2 and 3 and then displays the result, 5, an integer, in the Message window:
put 2 + 3
Example
This statement adds the floating-point numbers 2.5 and 3.25 and displays the result, 5.7500, a floating-point number, in the Message window:
put 2.5 + 3.25
![]() ![]() ![]() |