Subject: Re: CVS commit: src/lib/libc/gen
To: None <simonb@netbsd.org>
From: Perry E. Metzger <perry@piermont.com>
List: source-changes
Date: 12/26/2003 10:54:53
Simon Burge <simonb@netbsd.org> writes:
> Module Name:	src
> Committed By:	simonb
> Date:		Fri Dec 26 11:30:36 UTC 2003
>
> Modified Files:
> 	src/lib/libc/gen: humanize_number.c
>
> Log Message:
> Don't ever add a ".0" to a single digit number.

Why is .0 wrong when .1 would be okay? I can see not wanting to do 1.0
bytes (where it would be silly), but if a decimal makes sense in some
contexts, why not in others? Shouldn't we just be following normal
scientific significant digits rules?

.pm

> XXX: Should (for example) 1024 be 1.0K or 1K when the HN_DECIMAL flag
>      is passed?  Should there be a separate option that says "use the
>      HN_DECIMAL behaviour unless we are exactly equal to the suffix"?
>
>
> To generate a diff of this commit:
> cvs rdiff -r1.4 -r1.5 src/lib/libc/gen/humanize_number.c
>
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
>

-- 
Perry E. Metzger		perry@piermont.com