diff options
author | Rusty Conover <rconover@zootweb.com> | 2001-04-03 11:09:17 +0800 |
---|---|---|
committer | Rusty Conover <rconover@src.gnome.org> | 2001-04-03 11:09:17 +0800 |
commit | 784478463a5d9efdaa1c1d1d1f44abda0c0cd650 (patch) | |
tree | 019e247bcc551e89db304662c8c5378966f9fd03 /e-util | |
parent | 0884233afc1e0a1f14b6b882dedc54cbfccfe322 (diff) | |
download | gsoc2013-evolution-784478463a5d9efdaa1c1d1d1f44abda0c0cd650.tar gsoc2013-evolution-784478463a5d9efdaa1c1d1d1f44abda0c0cd650.tar.gz gsoc2013-evolution-784478463a5d9efdaa1c1d1d1f44abda0c0cd650.tar.bz2 gsoc2013-evolution-784478463a5d9efdaa1c1d1d1f44abda0c0cd650.tar.lz gsoc2013-evolution-784478463a5d9efdaa1c1d1d1f44abda0c0cd650.tar.xz gsoc2013-evolution-784478463a5d9efdaa1c1d1d1f44abda0c0cd650.tar.zst gsoc2013-evolution-784478463a5d9efdaa1c1d1d1f44abda0c0cd650.zip |
Fixed this function to properly format numbers that have leading zeros in
2001-04-02 Rusty Conover <rconover@zootweb.com>
* gal/util/e-util.c (e_format_number): Fixed this function to
properly format numbers that have leading zeros in sub groups.
Case in point 3042423 should now come out as 3,042,423 not
3,42,423.
svn path=/trunk/; revision=9116
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/e-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/e-util/e-util.c b/e-util/e-util.c index 18975375e6..204a2c3ad9 100644 --- a/e-util/e-util.c +++ b/e-util/e-util.c @@ -786,7 +786,7 @@ e_format_number (gint number) grouping++; case 0: divider = epow10(last_count); - if(!list && (number/divider) > 0) { + if((!list && (number/divider) > 0) || number > divider) { group = g_strdup_printf("%0*d", initial_grouping, number % divider); } else { group = g_strdup_printf("%d", number % divider); |