Numbers
Numbers Plugin – Arithmetic Operation
Summary (SEO Meta Description):
The Numbers plugin in WeHub performs arithmetic operations on numeric values.
Supports addition, subtraction, multiplication, and division for flexible calculations.
Overview
The Numbers Plugin is used to perform basic arithmetic operations inside workflows.
It enables calculations on numeric values provided by inputs or workflow data.
This is useful for data enrichment, financial calculations, and custom numeric logic within automation pipelines.
⚙️ Action: Arithmetic Operation
- Description: Executes arithmetic operations (ADD,SUBTRACT,MULTIPLY,DIVIDE) on input values.
- Use Case: Apply math calculations to transform workflow data.
Configuration Options:
| Field | Type | Description | 
|---|---|---|
| Label | String | Custom name for the node (e.g., "Calculate Patient Age"). | 
| Name | String | Name of the numeric parameter. | 
| Value | Number | Numeric value to be used in the calculation. | 
| Operation | Enum | Arithmetic operation. Options: ADD,SUBTRACT,MULTIPLY,DIVIDE. | 
💡 Example Use Cases
- Healthcare: Calculate dosage adjustments based on patient weight.
- Finance: Add tax or apply discounts to invoice totals.
- IoT: Convert sensor readings by applying scaling factors.
- ETL Pipelines: Normalize values during data transformations.
FAQ
Q: Can I use multiple inputs?
A: Yes, you can add multiple inputs with different names and operations.
Q: What happens if division by zero occurs?
A: The node will throw an error, and workflow execution stops unless error handling is defined.
Q: Can I mix integers and decimals?
A: Yes, both integer and floating-point values are supported.
Keywords: WeHub Numbers Plugin, Arithmetic Operation, add subtract multiply divide, workflow math calculation