ComfyUI Node
Number (GeN13)
Takes an integer or decimal and outputs it as INT, FLOAT and STRING, with a choice of rounding. format styles the STRING: duration: → duration:11, {} sec → 11 sec.
Number (GeN13)
- number
- INT
- FLOAT
- STRING
◄value0.000►
◄control_after_generatefixed►
◄to_intround►
◄format►
CategoryGeN13/utils
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| value | FLOAT | 0.000-1000000000–1000000000 | Value: an integer or decimal, up to six decimal places. Not used when number is connected. |
| control_after_generate | COMBO | fixed | After generate: fixed keeps the value, increment adds 1, decrement subtracts 1, randomize picks a random integer. |
| to_int | COMBO | round | Rounding: round to nearest, floor rounds down, ceil rounds up. |
| numberopt | INT,FLOAT,STRING | Number input: accepts INT, FLOAT or STRING and replaces value; text that cannot be converted gives 0. | |
| formatopt | STRING | Format: template for the STRING output; {} is replaced by the value. Without {}, the value is appended; empty outputs the value only. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| INT | INT | Integer: rounded as set in to_int. |
| FLOAT | FLOAT | Decimal: the original value as FLOAT. |
| STRING | STRING | Text: trailing zeros removed, such as 7.50 → 7.5; format applied if set. |