// Dose calculations are handled exclusively by the FastAPI backend. // This file only exposes the number-formatting utility used by the UI. window.fmtNumber = function fmtNumber(v, digits = 0) { if (!isFinite(v)) return "-"; return v.toLocaleString("fr-FR", { minimumFractionDigits: digits, maximumFractionDigits: digits, }); };