EasyManua.ls Logo

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE - Multiplication Operator; Multiplication Assignment Operator

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
1378 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Operators 179
* multiplication operator
expression1 * expression2
Multiplies two numerical expressions. If both expressions are integers, the product is an
integer. If either or both expressions are floating-point numbers, the product is a floating-
point number.
Availability: ActionScript 1.0; Flash Player 4
Operands
expression1 : Number - A number or expression that evaluates to a number.
expression2 : Number - A number or expression that evaluates to a number.
Returns
Number - An integer or floating-point number.
Example
Usage 1: The following statement multiplies the integers 2 and 3:
trace(2*3); // output: 6
The result, 6, is an integer. Usage 2: This statement multiplies the floating-point numbers 2.0
and 3.1416:
trace(2.0 * 3.1416); // output: 6.2832
The result, 6.2832, is a floating-point number.
*= multiplication assignment operator
expression1 *= expression2
Assigns expression1 the value of expression1 * expression2. For example, the
following two expressions are equivalent:
x *= y;
x = x * y
Availability: ActionScript 1.0; Flash Player 4
Operands
expression1 : Number - A number or expression that evaluates to a number.
expression2 : Number - A number or expression that evaluates to a number.

Table of Contents

Related product manuals