M Multiply then assign (*=) (Operator/assignment) Multiply (Web hosting resellers)
Monday, December 24th, 2007M Multiply then assign (*=) (Operator/assignment) Multiply then assign (*=) (Operator/assignment) Multiply two operands storing the result in the first. A value to be multiplied and then assigned into anOperand2 Multiply the left operand by the right operand and assign the result to the left operand. This is functionally equivalent to the expression: anOperand1 = anOperand1 * anOperand2; Although this is classified as an assignment operator it is really a compound of an assignment and a multiplicative operator. The associativity is right to left. Refer to the operator precedence topic for details of execution order. The new value of anOperand1 is returned as a result of the expression. Warnings: . The operand to the left of the operator must be an LValue. That is, it should be able to take an assignment and store the value. Availability: ECMAScript edition 2 JavaScript 1.0 JScript 1.0 Internet Explorer 3.02 Netscape 2.0 Netscape Enterprise Server version 2.0 Opera 3.0 Property/method value type: Number primitive JavaScript syntax: -anOperand1 *= anOperand2 anOperand1Argument list: A multiplier value See also: Assign value (=), Assignment expression, Assignment operator, Associativity, LValue, Multiplicative operator, Multiply (*), Operator Precedence Cross-references: ECMA 262 edition 2 section 11.13 ECMA 262 edition 3 section 11.13 1471