Nodes/ComfyUI-GeN13/Number (GeN13)
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.

By heigen13·Created 3 days ago·Updated about 21 hours ago· 1
Number (GeN13)
  • number
  • INT
  • FLOAT
  • STRING
◄value0.000►
◄control_after_generatefixed►
◄to_intround►
◄format►
CategoryGeN13/utils

Inputs (5)

NameTypeDefaultDescription
valueFLOAT0.000-1000000000–1000000000Value: an integer or decimal, up to six decimal places. Not used when number is connected.
control_after_generateCOMBOfixedAfter generate: fixed keeps the value, increment adds 1, decrement subtracts 1, randomize picks a random integer.
to_intCOMBOroundRounding: round to nearest, floor rounds down, ceil rounds up.
numberoptINT,FLOAT,STRINGNumber input: accepts INT, FLOAT or STRING and replaces value; text that cannot be converted gives 0.
formatoptSTRINGFormat: template for the STRING output; {} is replaced by the value. Without {}, the value is appended; empty outputs the value only.

Outputs (3)

NameTypeDescription
INTINTInteger: rounded as set in to_int.
FLOATFLOATDecimal: the original value as FLOAT.
STRINGSTRINGText: trailing zeros removed, such as 7.50 → 7.5; format applied if set.