Nodes/smn_support_nodes/[SSN] Convert Float To Others
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.

By SummonTheCat·Created about a year ago·Updated about a year ago· 0
[SSN] Convert Float To Others
    • string
    • int_base
    • int_round
    float0.00
    CategoryConverter

    Inputs (1)

    NameTypeDefaultDescription
    floatFLOAT0.00-1000000–1000000

    Outputs (3)

    NameTypeDescription
    stringSTRING
    int_baseINT
    int_roundINT