This commit is contained in:
cvs
2002-08-22 12:23:12 +00:00
parent 764c3d81db
commit 5c0e919cdf
4 changed files with 729 additions and 3 deletions

View File

@@ -186,11 +186,13 @@ 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 {
sprintf(num, "%g", val);
d=val;
sprintf(num, "%g", d);
ERR_I(StrPut(buf, num, sep));
}
return(0);