Math.Multiply¶
Name | - | Description | Default | Type |
---|---|---|---|---|
<input> |
Any valid integer(s), floating point number(s), or a sequence of such entities supported by this operation. | Int Int2 Int3 Int4 Int8 Int16 Float Float2 Float3 Float4 Color [Any] |
||
<output> |
The result of the operation, usually in the same type as the input value. | Int Int2 Int3 Int4 Int8 Int16 Float Float2 Float3 Float4 Color [Any] |
||
Operand |
The operand for this operation. | 0 |
Int &Int Int2 &Int2 Int3 &Int3 Int4 &Int4 Int8 &Int8 Int16 &Int16 Float &Float Float2 &Float2 Float3 &Float3 Float4 &Float4 Color &Color [Any] &[Any] |
Applies the binary operation on the input value and the operand and returns the result (or a sequence of results if the input and the operand are sequences).
Details¶
Multiplication is a binary operation, i.e., it needs two arguments to give a result.
The Math.Multiply
shard takes in the Input and the parameter :Operand
to produce the Output.
Both Input and :Operand
can be an integer, a float, or a sequence of such entities (but both value types should match for a given operation). The Output is generally of the same type as the Input provided to the shard.
See also
Examples¶
1 2 3 4 5 6 7 |
|
[info] [shards/Math/Multiply/1.edn] 5
[info] [shards/Math/Multiply/1.edn] 10
1 2 3 4 5 6 7 |
|
[info] [shards/Math/Multiply/2.edn] 5.3
[info] [shards/Math/Multiply/2.edn] 11.13
1 2 3 4 5 6 7 8 |
|
[info] [shards/Math/Multiply/3.edn] [4 5.1 6.4]
[info] [shards/Math/Multiply/3.edn] [12 20.4 14.08]
1 2 3 4 5 6 7 8 9 |
|
[info] [shards/Math/Multiply/4.edn] [4]
[info] [shards/Math/Multiply/4.edn] [12]
1 2 3 4 5 6 7 8 9 |
|
[info] [shards/Math/Multiply/5.edn] [4 2 1 5 8]
[info] [shards/Math/Multiply/5.edn] [24 8 6 20 48]