GoFiler Legato Script Reference
Legato v 1.5b Application v 5.24b
|
Table of Contents | < < Previous | Next >> |
Chapter Three — Data Types and Operators (continued)
Math operators perform arithmetic operations within an expression. Operations can be performed on variables, numeric literals, and (for some operators) string literals. Math operators are evaluated left-to-right. The following math operators are used in Legato:
Addition | + | a + b |
Subtraction | - | a - b |
Unary plus (integer promotion) | + | +a |
Unary minus (additive inverse) | - | -a |
Multiplication | * | a * b |
Division | / | a / b |
Modulo | % | a % b |
Prefix increment | ++ | ++a |
Prefix decrement | -- | --a |
Suffix increment | ++ | a++ |
Suffix decrement | -- | a-- |
Math operators are evaluated in their order of precedence as described in Section 3.12 Operator Precedence.
Table of Contents | < < Previous | Next >> |
© 2012-2024 Novaworks, LLC. All rights reserved worldwide. Unauthorized use, duplication or transmission prohibited by law. Portions of the software are protected by US Patents 10,095,672, 10,706,221 and 11,210,456. GoFiler™ and Legato™ are trademarks of Novaworks, LLC. EDGAR® is a federally registered trademark of the U.S. Securities and Exchange Commission. Novaworks is not affiliated with or approved by the U.S. Securities and Exchange Commission. All other trademarks are property of their respective owners. Use of the features specified in this language are subject to terms, conditions and limitations of the Software License Agreement.