ComfyUI Node
[SSN] Convert Float To Others
A converter node that takes a float input and outputs its string representation, its integer base (truncating the decimal part), and its integer rounded to the nearest whole number. Class methods ------------- INPUT_TYPES (dict): Defines the input fields for this node: a single float. Attributes ---------- RETURN_TYPES (`tuple`): The types of the output tuple: STRING, INT, INT. RETURN_NAMES (`tuple`): The names of the outputs ("string", "int_base", "int_round"). FUNCTION (`str`): The entry-point method name ("execute"). CATEGORY (`str`): The category under which this node appears in the UI ("Converter"). execute(float_value) -> tuple: Returns (string, int_base, int_round) for the input float.
[SSN] Convert Float To Others
- string
- int_base
- int_round
◄float0.00►
CategoryConverter
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| float | FLOAT | 0.00-1000000–1000000 | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| string | STRING | — |
| int_base | INT | — |
| int_round | INT | — |