mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
c0f1d53136
commit
8fdb2c02a3
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user