Error getting tags :
error 404Error getting tags :
error 404 * | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
*
Basics
Expander triangle
Type
Operator
Syntax

number1 * number2

Introduced
1.0
Changed
1.1
Environment
Desktop,Server,Web
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Multiplies two numbers.
Examples

get 3 * 5 -- evaluates to 15
put thisNumber * it into field "Result"
put (3 + commonFactor) * 4 into tempVariable
local tArray, tProductArray
put 1 into tArray[1]
put 2 into tArray[2]
put tArray * 10 into tProductArray

Additional Comments
Expander triangle

Use the * (times) operator to multiply two numbers.

Parameters:

The operands number2 and number2 are numbers or expressions that evaluate to numbers, or arrays containing numbers.

Comments:

To multiply the contents of a container by a number, use the multiply command instead.

If either number1 or number2 is an array, each of the array elements must be a number. If an array is multiplied by a number, each element is multiplied by the number. If an array is multiplied by an array, both arrays must have the same number of elements and the same dimension, and each element in one array is multiplied by the corresponding element of the other array.

If an element of one array is empty, the * operator treats its contents as zero.

Changes to Revolution:

The option to multiply arrays was introduced in version 1.1. In previous versions, only single numbers could be used with the * operator.

User Comments
Expander triangle