Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/lib/libc/gen



Simon Burge <simonb%netbsd.org@localhost> 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@localhost



Home | Main Index | Thread Index | Old Index