CDA Show Float
Actually see the number instead of trusting the wire
- STRING
CDA Show Float is the pack's answer to a silent problem: a float flows through your graph and you have no idea what it actually is. This node takes a FLOAT and prints it as text, right on the node body, every time the graph runs. It's a debugger that costs nothing to drop into a chain, and for the Data-Analysis pack - where a Pandas Mean or Pandas Sum result is just a number riding a wire - it's the difference between trusting the math and verifying it.
It's part of the CDA (ComfyUI Data Analysis) display family in HowToSD's pack. Like its sibling CDA Show Int, it's built on the Show Text pattern from pythongosssss's ComfyUI-Custom-Scripts (MIT-licensed, credited in the pack's credit/ folder). The author's one-liner description says it all: "Displays a floating-point number as text."
How it works
The node is an output node - it marks the end of a branch, though its STRING output is real and wireable. It sets INPUT_IS_LIST = True, grabs the first value from its input, converts it with str(), and returns it in a ui payload that the pack's ShowText.js frontend renders onto the node. The hidden unique_id / extra_pnginfo plumbing is how the frontend knows which node to repaint - same mechanism as ComfyUI's own text display nodes. Net effect: run the graph, and the number appears on the node.
Inputs and outputs
- float_scalar (required,
FLOAT, default 0) - the number to display. Wire it from anywhere: CDA Float Create, Pandas Mean, a scalar-arithmetic node. - STRING output (list) - the text form, also returned as a real output if you want to save or forward it.
When you'd use it
Debugging, mostly, and it's cheap enough to do habitually. Chain Pandas Mean → CDA Show Float and confirm the average actually looks plausible before you build a report on it. It pairs naturally with CDA Float Create - create the value, show it, and you've got visual confirmation the node did what you typed.
Because it's an output node, drop it at the end of a branch rather than expecting to route meaningful work through it. The string output can go to a text-save node if you need a record, but the primary job is on-screen verification.
Installing it
Pack install, once, for the whole family. ComfyUI Manager: search "Data analysis", install ComfyUI-Data-Analysis, restart, reload. Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/HowToSD/ComfyUI-Data-Analysis
mv ComfyUI-Data-Analysis data-analysis # README: examples depend on this folder name
pip install -r data-analysis/requirements.txt
Dependencies: pandas, matplotlib, seaborn, scipy, scikit-learn, openpyxl, lxml. No GPU, no models. PyTorch nodes live in ComfyUI-Pt-Wrapper since March 2025.
Gotchas
- It shows the first value only. List input, first element displayed - the Show Text design.
- It's a terminal node. Put it at the end of a branch for inspection, not in the middle of a pipeline you're routing data through.
- Precision is whatever str() gives. No formatting options - you see Python's default representation, which is usually more digits than you want and sometimes more than you expect.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| float_scalar | FLOAT | 0.00 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |