Ard Float To Integer
A conversion node whose conversion is… not what you'd expect
- integer
Here's a node where reading the source actually pays off, because the name lies a little. Ard Float To Integer takes a float on Fx and outputs it on integer, which sounds like a rounding/truncating conversion - and it isn't. Look at the implementation and you find that when the input is a float (which it always is, since the input type is FLOAT), the node does float(Fx) and returns it. It does not int(), it does not round, it does not truncate. 3.7 goes in and 3.7 comes out, just labelled INT.
So what's actually happening? The node is doing a type re-declaration: it hands a float value out through an INT-typed port. Whether that "works" depends entirely on what's downstream. Many nodes in ComfyUI coerce whatever number arrives, so you can get away with it. But any consumer that genuinely expects a whole number will do its own thing - truncation, a TypeError, or a weird value - and the failure mode is silent. If your goal is 3.7 → 3, this node does not do that. The pack's own Ard Integer node does int(Ix) and would give you the truncation; this one won't.
The intended use, charitably: it's a type-adapter for the pack's own convention where the math nodes output a result_float you sometimes need to feed into an INT slot, and the author reached for a cast that doesn't cast. Uncharitably: it's a bug wearing a label. Either way, know the behavior before you trust it.
Gotchas to keep you out of trouble:
- Don't use it for rounding. Truncate/round yourself, or use Ard Integer (which at least calls
int()). - A float like
3.7passed through this port into a seed, width, or steps input may work or may misbehave - test the exact consumer. - The node prints nothing and raises nothing, so a wrong value downstream is on you to notice.
Honest verdict: this is the kind of node you'd only keep because it's already installed. For any real float→integer need, ComfyUI's built-in conversions or Ard Integer are safer. If you do use this one, you now know precisely what it does - and what it doesn't.
Install is the standard pack route - ComfyUI Manager → search ComfyUI-Ardenius, or:
cd ComfyUI/custom_nodes
git clone https://github.com/ArdeniusAI/ComfyUI-Ardenius
then restart ComfyUI. Pack-wide notes: civitai and moviepy install with the pack (nothing to do with this node), and a single import error at startup is the Save Image node wanting comfyui_controlnet_aux - the rest of the pack loads.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| Fx | FLOAT | 1.00 | input an float |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| integer | INT | — |