Use %f instead of %g in AST dumps

- To ensure that floating point constants are identifiable as floating
  point, FLispString::AddFloat() now prints them with %f.
This commit is contained in:
Randy Heit 2013-09-10 21:24:32 -05:00
parent 61666e1515
commit 3044fdd0a9

View file

@ -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: