Nodes/ComfyUI Text Processor/Simple Eval Floats
ComfyUI Node

Simple Eval Floats

Evaluates a numeric expression with float inputs and returns int, float, and string forms.

By rookiestar28·Created 9 months ago·Updated 2 months ago· 16
Simple Eval Floats
    • INT
    • FLOAT
    • STRING
    python_expression((a + b) - c) / 2
    print_to_console
    a0.00
    b0.00
    c0.00
    CategoryComfyUI Text Processor/Logic

    Inputs (5)

    NameTypeDefaultDescription
    python_expressionSTRING((a + b) - c) / 2
    print_to_consoleCOMBO2 options: False, True
    aoptFLOAT0.00
    boptFLOAT0.00
    coptFLOAT0.00

    Outputs (3)

    NameTypeDescription
    INTINTInteger-cast result.
    FLOATFLOATFloat result.
    STRINGSTRINGString representation of the result.