💧 Convertisseur de Volume
The only node that spans teaspoons and oil barrels
- result
- output_str
Volume is the unit category where almost everyone has to stop and think - and where US vs imperial quietly ruins your day. 💧 Convertisseur de Volume is the CalculatorPro node that keeps liters, cubic meters, gallons (both kinds), and kitchen measures straight inside your workflow. It won't make your cooking better, but it will convert a tablespoon to cubic inches without a trip to a converter website.
The units
from_unit and to_unit dropdowns offer 20 choices, and this is the most eclectic list in the pack: metric (litre, millilitre, m³, cL, dL, hL), the US system (gallon, quart, pint, cup, fluid ounce), the imperial system (gallon, pint, fluid ounce - kept as separate entries from their US namesakes), kitchen measures (tablespoon 15 ml, teaspoon 5 ml), and then two industry oddballs: the oil barrel (158.987 L) and the stère (a French unit for stacked firewood, 1000 L). Plus cubic foot and cubic inch for the construction-minded.
The mechanism is the suite's standard one: everything is stored as a factor relative to the litre, the value (FLOAT) is normalized to litres, then divided by the target factor. The US-vs-imperial split is the reason this node exists instead of just "multiply by 3.785"-a US gallon is 3.78541 L while an imperial one is 4.54609 L, and both are right there as separate labeled entries so you can't silently ship the wrong conversion.
What you get
Same two outputs as every converter in the pack: result (FLOAT) with the bare number and output_str (STRING) with the formatted conversion line. Use result for chained math, output_str for anything human-readable - dynamic prompts, notes, debugging. Feed the value from another node and the conversion updates live, which is the point of keeping it in the graph rather than doing it in your head.
Where it's genuinely useful
Be honest: in an image-generation workflow, volume conversion is a rare ask. It earns its place the same way its siblings do - when a volume is a parameter in a different pipeline you're driving from ComfyUI (batch pricing, recipes, industrial math), or when you want a prompt that says "a 4-gallon tank" and the source value is in litres. The one trap to avoid is grabbing US when you meant imperial (or vice versa) - read the parenthetical in the label, because the names alone are identical.
Install
It's one of eight nodes in the pack, so one install covers everything:
cd ComfyUI/custom_nodes
git clone https://github.com/orion4d/Calculator_Pro
restart ComfyUI, or search "Calculator_Pro" in ComfyUI Manager. Pure Python, no dependencies, no models - the same frictionless install as the rest of the suite.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| value | FLOAT | 1.00 | — |
| from_unit | COMBO | 20 options: Litre (L), Millilitre (ml/cc), Mètre cube (m³), Centilitre (cL), Décilitre (dL), Hectolitre (hL), +14 | |
| to_unit | COMBO | 20 options: Litre (L), Millilitre (ml/cc), Mètre cube (m³), Centilitre (cL), Décilitre (dL), Hectolitre (hL), +14 |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| result | FLOAT | — |
| output_str | STRING | — |