diff --git a/src/litegraph.js b/src/litegraph.js index 86d58eff5..46ba5038d 100755 --- a/src/litegraph.js +++ b/src/litegraph.js @@ -9837,7 +9837,11 @@ LGraphNode.prototype.executeAction = function(action) ctx.textAlign = "center"; ctx.fillStyle = text_color; ctx.fillText( - w.label || w.name + " " + Number(w.value).toFixed(3), + w.label || w.name + " " + Number(w.value).toFixed( + w.options.precision != null + ? w.options.precision + : 3 + ), widget_width * 0.5, y + H * 0.7 );