CRZ Int to Float
Int in, float out
- INT
- FLOAT
CRZ Int to Float is the exact mirror of its sibling CRZ Float to Int: take a whole number, hand back a float. It's the kind of node that looks pointless until the moment ComfyUI refuses to connect an INT output to a FLOAT input, and then it's the only thing between you and a two-minute search for a workaround. It exists to make the dashboard pack's controls play nicely with the rest of the graph.
It ships with ComfyUI-CRZnodes, CoreyCorza's dashboard pack, which describes the pair in the README as a "compact int-to-float / float-to-int." These are plumbing nodes - they do one cast and nothing else, and they live in the hidden category so they don't clutter your node menu.
How it works
The entire implementation is float(INT). One cast, one output. 5 becomes 5.0, -3 becomes -3.0. There's no rounding involved because there's nothing to round - the input is a whole number (or anything else you hand it, since the input is typed * / any). If you feed it something that's already a float, you get that float back; if you feed it a string that parses as a number, it'll convert. It's deliberately dumb, and that's the point.
The inputs and outputs
INT(input) - the integer to convert. Accepts any type and casts it.FLOAT(output) - the value as a float.
That's the whole schema, and it mirrors CRZ Float to Int exactly, with the types swapped.
When you'd actually use it
ComfyUI is stricter than most people expect about float vs int sockets, and the direction matters. The most common real-world case is when you have an integer control (a seed, a frame index, a count) that needs to feed something expecting a FLOAT - a strength, a weight, a divisor in a math node. Drop this node between them and the wire accepts.
The paired setup that makes the pack click: your dashboard sliders output floats, your step/seed inputs want ints - that's where Float to Int earns its keep - but any downstream node that expects a float for a value that started as a count needs this one. Keep both in your back pocket; together they cover every scalar type mismatch in the graph.
Installing it
Pack install, nothing extra: ComfyUI Manager → search ComfyUI-CRZnodes → install → restart. No requirements, no models.
cd ComfyUI/custom_nodes
git clone https://github.com/CoreyCorza/ComfyUI-CRZnodes.git
A note on the hidden category
Because it's registered under __hidden__, it won't show up if you're browsing the node menu for something called "Int to Float" - it appears as part of workflows, not as a search result. If you ever see a stray "CRZ" node in a downloaded workflow that you didn't place, this (and its sibling) is usually what it is. Don't delete it if the workflow needs it; it's doing exactly one job, and that one job is why the wires connect.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| INT | * | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| FLOAT | FLOAT | — |