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.
Convert To Int Float Str
- number
- int
- float
- string
- count
CategoryUtility
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| number | * | Anything that can be meaningfully converted to a string with parseable numbers inside |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| int | INT | All 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. |
| float | FLOAT | All 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. |
| string | STRING | All 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. |
| count | INT | Amount of numbers found in the value. |