Multiply

This function block multiplies a set of numeric inputs and outputs the resulting product. It is useful for scaling values, combining factors, and simple math chains in your visual flow.

πŸ“₯ Inputs

Number Socket(s) β€” one or more numeric input sockets (default: 2). This block accepts multiple numeric inputs; the active inputs are multiplied together.

πŸ“€ Outputs

Number The product of all connected numeric inputs.

πŸ•ΉοΈ Controls

Input size A dropdown to set how many numeric input sockets the block provides (adjustable number of inputs from the UI).

🎯 Key Features

  • Dynamic input count β€” expand or shrink the available input sockets to match how many values you want to multiply.

  • Simple numeric operation β€” multiplies all connected inputs and returns a single numeric result.

  • Works well inside math or data-processing chains where a single combined numeric value is required.

βš™οΈ How it runs

  • The block reads all currently connected numeric inputs.

  • Unconnected inputs are ignored.

  • It computes the product of the provided numbers and outputs the final numeric result.

  • Use the Input size control to change how many inputs are available before running.

πŸ“ Usage Instructions

  1. Set the desired number of inputs with Input size.

  2. Connect numeric sources (constants, measured values, counters, etc.) into the available Number sockets.

  3. Read the result from the output Number socket and pass it to downstream blocks.

πŸ’‘ Tips and Tricks

  • Combine with Number Input or Number Range to provide configurable constants or parameters to multiply with measured values.

  • Use with Add, Subtract, or Divide to build arithmetic pipelines (for example: compute a scaled offset by combining Add and Multiply).

  • When working with lists or batches, pair with Batch Processing, Get Element, or Debatch to multiply elements in a sequence.

  • Use Round or Absolute after this block to format or normalize the result for display or export.

  • Feed the output into Scope or CSV Export to visualize or log computed numeric results over time.

  • For counting-based calculations, combine with Counter or outputs such as Object Count from detection blocks to compute rates or totals.

πŸ› οΈ Troubleshooting

  • If the result is unexpected, check each connected Number input for correct values and ensure the intended sockets are connected.

  • If you need to multiply a large number of values, increase Input size before connecting all sources.

Last updated

Was this helpful?