Nodes/ComfyUI-outputlists-combiner/Convert To Int Float Str
ComfyUI Node

Convert To Int Float Str

Converts anything number-like to `INT` `FLOAT` `STRING`. Uses `nums_from_string.get_nums` internally which is very permissive in the numbers it accepts. Anything from actual ints, actual floats, ints or floats as strings, strings that contains multiple numbers with thousand-separators. Use a string `123;234;345` to quickly generate a list of numbers. Don't use commas as separators as they may be interpreted as thousand-separators. `int`, `float` and `string` use(s) `is_output_list=True` (indicated by the symbol `𝌠`) and will be processed sequentially by corresponding nodes.

By geroldmeisinger·Created 9 months ago·Updated 6 months ago· 169
Convert To Int Float Str
  • number
  • int
  • float
  • string
  • count
CategoryUtility

Inputs (1)

NameTypeDefaultDescription
number*Anything that can be meaningfully converted to a string with parseable numbers inside

Outputs (4)

NameTypeDescription
intINTAll the numbers found in the string with the decimals truncated. use(s) `is_output_list=True` (indicated by the symbol `𝌠`) and will be processed sequentially by corresponding nodes.
floatFLOATAll the numbers found in the string as floats. use(s) `is_output_list=True` (indicated by the symbol `𝌠`) and will be processed sequentially by corresponding nodes.
stringSTRINGAll the numbers found in the string as floats converted to string. use(s) `is_output_list=True` (indicated by the symbol `𝌠`) and will be processed sequentially by corresponding nodes.
countINTAmount of numbers found in the value.