option to write floats as ints when possible

omit the ".0" in values like "3.0"
This commit is contained in:
ac-stef
2015-05-18 14:59:41 +02:00
parent e5fc8b35a2
commit c4e1155dcc
3 changed files with 14 additions and 15 deletions
+2 -2
View File
@@ -841,8 +841,8 @@ extern bool exechook(int context, const char *ident, const char *body,...); //
extern char *executeret(const char *p);
extern char *conc(const char **w, int n, bool space);
extern void intret(int v);
extern const char *floatstr(float v);
extern void floatret(float v);
extern const char *floatstr(float v, bool neat = false);
extern void floatret(float v, bool neat = false);
extern void result(const char *s);
extern void exec(const char *cfgfile);
extern bool execfile(const char *cfgfile);