diff --git a/src/zscript/ast.cpp b/src/zscript/ast.cpp index dc9422cf4..bdb1d429c 100644 --- a/src/zscript/ast.cpp +++ b/src/zscript/ast.cpp @@ -155,7 +155,7 @@ public: void AddFloat(double f) { char buf[32]; - size_t len = mysnprintf(buf, countof(buf), "%g", f); + size_t len = mysnprintf(buf, countof(buf), "%.4f", f); Add(buf, len); } private: