π§ Simple Math Int
Simple Math Int (ComfyUI Essentials)
- INT
This is about as small as a node gets: it holds a single whole number and outputs it. No expression, no variables, no second input - just an integer you set once and can wire into as many places as you like. Think of it as a labeled constant for your graph.
Why you'd reach for it
In a big workflow you often want one number - a step count, a batch size, a seed offset, a target width - used in several nodes at once, and you want to change it in exactly one place. Retyping it into five node widgets is how graphs drift out of sync: you update four of them and forget the fifth. Simple Math Int is the fix. Set the value here, fan the output out to every node that needs it, and there's a single source of truth. It's the integer sibling of the pack's other math utilities, and it exists precisely so you're not hunting through a dozen widgets to change one setting.
How it works
There's genuinely not much mechanism to explain. It's a primitive: a widget that stores an INT and passes it straight through to its output. Unlike Simple Math, it doesn't evaluate anything - the value you type is the value you get. That simplicity is the point; it's a clean, typed constant rather than a calculator.
Inputs and outputs
One required input, value, which is the integer itself (it accepts a huge range, so batch sizes, seeds, and pixel dimensions all fit). One output, INT. Connect that output anywhere a node asks for an integer - Empty Latent width/height, KSampler steps, a batch index, and so on.
Installing it
Ships in ComfyUI Essentials by cubiq (Matteo Spinelli, the IPAdapter node author). ComfyUI Manager: search ComfyUI Essentials, install, restart. Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/cubiq/ComfyUI_essentials
then restart. It appears as π§ Simple Math Int under essentials/utilities, class SimpleMathInt+. Like the rest of the pack it's in maintenance-only mode as of April 2025 - fine for a node this stable.
Common issues
Barely any, which is the appeal - but two notes. First, it's strictly an integer; if you need a fractional value (a denoise of 0.6, a guidance of 3.5) this is the wrong node - use Simple Math and take its FLOAT output, or a float primitive. Second, if you find yourself using several of these to feed one calculation, you probably want Simple Math (which does the arithmetic) rather than a wall of constants plus separate add/multiply nodes. Reach for Simple Math Int when the number is genuinely a fixed setting you want to control from one spot.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| value | INT | 0-18446744073709550000β18446744073709550000 | β |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| INT | INT | β |