diff options
author | Kevin Ryde <user42@zip.com.au> | 2002-03-03 01:20:59 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2002-03-03 01:20:59 +0100 |
commit | 9dac4e9e8852345283aa46efa84a29919991fdea (patch) | |
tree | a5f19bd5d92df7a136647d42f85eb3a9f59cc418 /printf | |
parent | b9fd36cf25496a62fb17f99e3b038a36575fa523 (diff) | |
download | gmp-9dac4e9e8852345283aa46efa84a29919991fdea.tar.gz |
* printf/doprntf.c: Do a showbase on octal float fractions, for
instance "00.4" where previously it gave "0.4".
Diffstat (limited to 'printf')
-rw-r--r-- | printf/doprntf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/printf/doprntf.c b/printf/doprntf.c index 2e5770afd..50d3894e9 100644 --- a/printf/doprntf.c +++ b/printf/doprntf.c @@ -4,7 +4,7 @@ CERTAIN TO BE SUBJECT TO INCOMPATIBLE CHANGES OR DISAPPEAR COMPLETELY IN FUTURE GNU MP RELEASES. -Copyright 2001 Free Software Foundation, Inc. +Copyright 2001, 2002 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -334,7 +334,7 @@ __gmp_doprnt_mpf (const struct doprnt_funs_t *funs, case DOPRNT_SHOWBASE_NO: break; case DOPRNT_SHOWBASE_NONZERO: - if (intlen == 0) + if (intlen == 0 && fraclen == 0) break; /*FALLTHRU*/ case DOPRNT_SHOWBASE_YES: |