(Numeric Add) - MACROMEDIA FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 1.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Example
Usage 1: The following statement multiplies the integers 2 and 3:
2 * 3
The result is 6, which is an integer.
Usage 2: The following statement multiplies the floating-point numbers 2.0 and 3.1416:
2.0 * 3.1416
The result is 6.2832, which is a floating-point number.

+ (numeric add)

Availability
Flash Lite 1.0.
Usage
expression1 + expression2
Operands
Numbers.
expression1, expression2
Description
Operator; adds numeric expressions. The
is a numeric operator only; it cannot be used for
+
string concatenation.
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.
Example
The following example adds the integers 2 and 3; the resulting integer, 5, appears in the
Output panel:
trace (2 + 3);
The following example adds the floating-point numbers 2.5 and 3.25; the result, 5.75, a
floating-point number, appears in the Output panel:
trace (2.5 + 3.25);
See also
add (string concatenation)
96
Flash Lite Operators

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents