Lute Kamstra <[EMAIL PROTECTED]> writes: > 10550 is written as 10k
Thanks for the bug report. I installed the following patch into gnulib. 2003-09-03 Paul Eggert <[EMAIL PROTECTED]> * human.c (human_readable): Fix bug that rounded 10501 to 10k. Bug reported by Lute Kamstra in <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>. --- human.c.~1.21.~ Fri Jun 6 15:37:23 2003 +++ human.c Wed Sep 3 12:49:04 2003 @@ -355,11 +355,9 @@ human_readable (uintmax_t n, char *buf, } } - if (inexact_style == human_ceiling - ? 0 < tenths + rounding - : inexact_style == human_round_to_nearest - ? 5 < tenths + (2 < rounding + (amt & 1)) - : /* inexact_style == human_floor */ 0) + if (inexact_style == human_round_to_nearest + ? 5 < tenths + (0 < rounding + (amt & 1)) + : inexact_style == human_ceiling && 0 < tenths + rounding) { amt++; _______________________________________________ Bug-coreutils mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-coreutils