This commit is contained in:
cvs
2002-08-22 13:06:49 +00:00
parent 5c0e919cdf
commit 6cf85bb11c

View File

@@ -186,13 +186,11 @@ int StrPutInt(StrBuf *buf, int val, int sep) {
int StrPutFloat(StrBuf *buf, float val, int sep) {
char num[32];
int l;
double d;
if (val == MYC_NAN) {
ERR_I(StrPut(buf, "NaN", sep));
} else {
d=val;
sprintf(num, "%g", d);
sprintf(num, "%g", val);
ERR_I(StrPut(buf, num, sep));
}
return(0);