π± Artha Math Integer
A whole-number constant with its text form wired in
- value
- number
Artha Math Integer is the π± Artha pack's integer constant: you type a whole number, it outputs that number as an INT and as a STRING. It's the integer half of the pack's "give me a number and its text" pair (Math Float is the other half), and it's exactly as simple as it sounds.
It's tempting to skip over this node - a box with a number in it isn't exciting. But it earns its keep in one specific way the core value nodes don't: the STRING output. When you need to inject a number into a prompt string, a filename prefix, or a text display, this node hands you the text form on the same widget you set the value on, no conversion node required.
How it works
The integer input is an INT field covering the full 64-bit range (β2^63 to 2^63β1), defaulting to 0. On execution it emits value (INT) - the same number - and number (STRING) - the value as text. Whole numbers only; if you set a decimal you'll want Math Float instead.
Inputs that matter
- integer - the value. Outputs: value (INT) and number (STRING).
Installing it
One-pack install, same as the whole Artha family:
cd ComfyUI/custom_nodes
git clone https://github.com/Cyrostar/ComfyUI-Artha-Nodes
pip install -r ComfyUI/custom_nodes/ComfyUI-Artha-Nodes/requirements.txt
restart ComfyUI, or search "ComfyUI-Artha-Nodes" in ComfyUI Manager. No API key, no models, no dependencies beyond the pack's baseline.
Common issues
- Need a decimal? Wrong node: this is integer-only. Math Float handles non-whole values; this one just casts whatever's in the box to an int.
- The STRING output looks redundant: until you build a prompt with a step-count or seed baked in as text. That's where it pays off.
- It's a constant, not a converter: converting an existing value is what Math F2I/I2F are for. This declares a value for the graph.
The verdict: another deliberately boring node from the Artha Math family, and that's the point. If you need a whole-number constant with a ready-to-use text version, this is the cleanest way to get both from one widget.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| integer | INT | 0-9223372036854776000β9223372036854776000 | β |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| value | INT | β |
| number | STRING | β |