Number Pixaroma
One number, two outputs — an int and a float — and math expressions in the field
- int
- float
Number Pixaroma is a tiny utility with a genuinely annoying problem it solves cleanly: you have one value, but one downstream node wants a whole number and another wants a decimal. Type the value once, and the node hands you both - an int output and a float output from the same field. No conversion nodes, no rounding surprises.
If you've wired ComfyUI for a while you've hit the "this input is INT, that input is FLOAT, and I have one number" wall. ComfyUI will often auto-convert and sometimes it just refuses or rounds in a way you didn't expect. This node makes the choice explicit and the conversion visible.
How it works
One required input, value, and two outputs. Type 42 and you get 42 as both int and float. Type 3.14 and the float output keeps it as-is while the int output rounds to the nearest whole number: 3.5 becomes 4, 3.4 becomes 3, -2.5 becomes -2. That's "round to nearest," not truncate - worth remembering if you've got a value hovering at a .5 boundary and you're wondering why the int keeps flipping.
The field also accepts math expressions, which is a Pixaroma house style across its number nodes: 1024+64, 1024/3, 512*2 all evaluate when you run. The range is roughly plus or minus a quadrillion, so you're not going to overflow it with anything a sampler needs.
When you'd reach for it
- A node wants a seed as INT and another wants the same number as FLOAT - one field, both outputs.
- You need to convert a decimal to a whole number cleanly mid-workflow without hunting for a conversion node.
- You want a scratch number you can retype without digging into a KSampler or a latent-size node buried elsewhere in the graph.
The outputs are named int and float and are exactly what they say: wire each to the matching input type and ComfyUI won't fight you.
Install and gotchas
Standard Pixaroma install - ComfyUI Manager (search "Pixaroma") or:
cd ComfyUI/custom_nodes
git clone https://github.com/pixaroma/ComfyUI-Pixaroma
Restart. No dependencies, no models.
Honestly, the only trap here is the rounding rule - if you assume it truncates, 3.9 becoming 4 will surprise you once. And the pack-wide caveat: after an update, hard-refresh with Ctrl+Shift+R (Cmd+Shift+R on Mac) if a node looks blank, because the browser cache is almost always the culprit.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| value | FLOAT | 1.0-1000000000000000–1000000000000000 | The number to output. Accepts whole numbers, decimals, and math expressions like 1024+64 or 1024/3. Range is roughly +/- 1 quadrillion. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| int | INT | The value as a whole number (rounded to nearest). |
| float | FLOAT | The value as a decimal number, kept as-is. |