Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/usr.bin/jot
On Sat, Feb 23, 2008 at 10:46:10PM +0000, David Laight wrote:
>
> Module Name: src
> Committed By: dsl
> Date: Sat Feb 23 22:46:10 UTC 2008
>
> Modified Files:
> src/usr.bin/jot: jot.c
>
> Log Message:
> If we are doing a random integer (or character) format, then increase the
> range by 1 so that the quoted upper and lower values both appear, and
> with the same frequency as the intermediate values.
> This reverts the change from rev 1.13, and fixes it properly!
> Also fixes 'jot -r -c - 97 98' as reported to netbsd-bugs (but not as a PR!).
Actually I've re-introduced that bug - it had other side-effects.
But the 'round to even' of floating point values is a problem
for all decimal places, so using round(x) doesn't completely solve the
reported problem.
David
--
David Laight: david%l8s.co.uk@localhost
Home |
Main Index |
Thread Index |
Old Index