π± Artha Math Float
A float constant with the string version attached
- value
- number
Artha Math Float is the π± Artha pack's float constant: you type a number, it outputs that number as a FLOAT and as a STRING. It's the pack's answer to "I need a specific decimal value and its text form available at a wire."
On the surface this is the most boring node in the pack - it's a box with a number in it. But it fits the Artha design philosophy: the Math family always gives you both the typed value and the string form, so you never end up shoving a raw number into a text widget and hoping. If you're building an Artha-native workflow, having a clean FLOAT source with a matching STRING output on the same node is genuinely convenient.
How it works
The float input is a FLOAT field with a wide range (β1e18 to 1e18) and a step of 0.001, defaulting to 0. On execution it emits value (FLOAT) - the same number - and number (STRING) - the value rendered as text. That's the whole mechanism.
Inputs that matter
- float - the value, adjustable to thousandths. Outputs: value (FLOAT) 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
- "Why is there a STRING output on a math node?": so you can wire the value into text displays, prompt strings, or filename prefixes without a separate number-to-string node. Use it.
- Precision surprise: the STRING output is
str(float), so0.30000000000000004-style float artifacts can appear for odd values. For display purposes this is usually a non-issue; for exact text, type the string yourself. - It's a constant, not a converter: if you're converting an existing float, you want Math F2I/I2F or the operation node - this one just declares a value.
The honest one-liner: it's the FLOAT half of the pack's "give me a number and its text" pair, alongside Math Integer. If you need a decimal constant with a string version, this is the node. If you never need the text form, ComfyUI's core value node does the same job with fewer bells.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| float | FLOAT | 0.000-1000000000000000000β1000000000000000000 | β |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| value | FLOAT | β |
| number | STRING | β |