Files
geroldmeisinger-ComfyUI-out…/web/docs/ConvertNumberToIntFloatStr.md
T

1.1 KiB

Convert To Int Float Str

Convert To Int Float Str

(ComfyUI workflow included)

Convert 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. int, float and string use(s) is_output_list=True (indicated by the symbol 𝌠) and will be processed sequentially by corresponding nodes.

Inputs

Name Type Description
number * Anything that can be meaningfully converted to a string

Outputs

Name Type Description
int INT 𝌠 All the numbers found in the string with the decimals truncated.
float FLOAT 𝌠 All the numbers found in the string as floats.
string STRING 𝌠 All the numbers found in the string as floats converted to string.
count INT Amount of numbers found in the full list.