Nodes/ComfyUI-Pixaroma/Number Pixaroma
ComfyUI Node

Number Pixaroma

Number Pixaroma - a tiny node with one number field. Outputs the same value twice: once as INT (rounded to the nearest whole number) and once as FLOAT (kept as-is with decimals). Useful when one downstream node wants an INT and another wants a FLOAT from the same value, or when you want to convert a decimal to an integer cleanly in the middle of a workflow. The number field accepts whole numbers (42), decimals (3.14), and math expressions (1024+64, 1024/3, 512*2). Float-to-int rounds to the nearest whole number: 3.5 becomes 4, 3.4 becomes 3, -2.5 becomes -2.

By pixaroma·Created 5 months ago·Updated 23 days ago· 271
Number Pixaroma
    • int
    • float
    value1.0
    Category👑 Pixaroma/🔢 Values

    Inputs (1)

    NameTypeDefaultDescription
    valueFLOAT1.0-1000000000000000–1000000000000000The number to output. Accepts whole numbers, decimals, and math expressions like 1024+64 or 1024/3. Range is roughly +/- 1 quadrillion.

    Outputs (2)

    NameTypeDescription
    intINTThe value as a whole number (rounded to nearest).
    floatFLOATThe value as a decimal number, kept as-is.