ComfyUI Node
đź’€Prepack Calculator
Calculator node that evaluates math expressions with variables a, b, c, d. Outputs both int and float results.
đź’€Prepack Calculator
- a
- b
- c
- d
- result_int
- result_float
â—„formulaa + bâ–ş
Categoryđź’€Prepack
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| formula | STRING | a + b | Math formula using variables a, b, c, d. Example: (a*c)+d/2 |
| aopt | INT,FLOAT | 0 | Variable a (int or float) |
| bopt | INT,FLOAT | 0 | Variable b (int or float) |
| copt | INT,FLOAT | 0 | Variable c (int or float) |
| dopt | INT,FLOAT | 0 | Variable d (int or float) |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| result_int | INT | Result as integer (rounded) |
| result_float | FLOAT | Result as float (original precision) |