patch from Graham Leggett <minfrin@sharp.fm>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1852 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 1999-07-31 17:30:44 +00:00
parent c0f1d53136
commit 8fdb2c02a3

View File

@ -182,6 +182,12 @@ PrtAmtComma (char * buf, double val, int prec)
double tmp, amt=0.0;
char *start = buf;
/* check if we're printing infinity */
if (!finite(val)) {
strcpy (buf, "inf");
return 3;
}
/* count number of commas */
tmp = val;
while (tmp > 1000.0) {