Math_Y变量值
The float twin of Math_X — same two-socket trick, decimals instead of integers
- STRING
- FLOAT
Math_Y变量值 ("Y variable value") is the FLOAT side of the pack's variable pair. Where Math_X变量值 holds an integer, this one holds a decimal - same idea, same two outputs, different number type. It's a value node: define a number in one place and fan it out to everything that needs it, instead of re-typing the same CFG or strength into a dozen widgets and losing track of which one you changed.
The reason to pick this over a core PrimitiveFloat is the same as with Math_X: it returns both a typed FLOAT and a STRING of the same value. Wire the FLOAT into anything numeric - a sampler's CFG, a ControlNet strength, an upscale factor - and the STRING into a text node when you want that number inside a prompt, filename, or log line. y_ac() is literally return (str(Y), Y), so you get both for the price of one node.
The inputs
- Y - a float from 0 to 8192, default 0. Two things to know: it doesn't go negative, and the slider step is 1, which is way too coarse for decimals. You won't be able to land on 0.5 by dragging - just click the field and type it. The
display: numberconfig means it renders as a plain number box, so typing is the natural move anyway. - tips - the author's label ("浮点数变量Y"), decorative. Ignore it.
Use it for anything fractional you want controlled from one spot: guidance, strengths, blend ratios, weights that feed the pack's math expression node. Convert the Y widget to an input and you can even drive it from another node, making "variable" literal.
Installing the pack
- ComfyUI Manager: search "ComfyUI_AC_FUN" and install.
- Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/A719689614/ComfyUI_AC_FUN-V1.0
Restart ComfyUI. The pack is Cc啊程's (a Bilibili creator and architect by trade) Chinese-labeled wrapper suite around core ComfyUI nodes - no model downloads, no heavy deps. Everything sits under 🌌AC_FUNV1.0.
Bottom line
The float sibling of Math_X: one value, FLOAT + STRING outputs. If you're already in this pack it's the cleanest way to hold a decimal and have it ready for both numeric and text consumers. Just remember to type your decimals instead of fighting the step-1 slider.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| Y | FLOAT | 00–8192 | — |
| tips | STRING | 浮点数变量Y | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |
| FLOAT | FLOAT | — |