I know that for most people this thread ended a long time ago, but I am fairly
behind, so I wanted to throw in my $0.02.
The reason that .5 would be rounded up is because you are forgetting about .0
Thus:
.0 .1 .2 .3 .4 .5 .6 .7 .8 .9
^
This is the fifth number because of .0 That way there are five on each side.
-Ryan
Robin wrote:
> > for a# = 0.5 to 10.5
> > print int(a#)
> > next a#
> > do
> > until mouse(_down)
> >
> > You would think it would go 1,2,3,4,5,6,7,8,9,10,11
> > Instead it goes 0,2,2,4,4,6,6,8,8,10,10
> >
> I remember from years ago that there is some standard rule in which <0.5 is
> rounded down, >0.5 is rounded up, and exactly 0.5 is rounded to the nearest
> even integer.
>
> In the older olden days we always rounded it up, but some bright spark
> decided that this was prejudice. It after all equally close to the next
> highest and next lowest, and using alternating directions of rounding, while
> still arbitrary, at least averages it out rather than biasing calculations
> to an increase.
>
> --
> Robin
> ====================================================
> Genesearch Pty Ltd
> E-mail: robinc@...
> WWW: http://www.genesearch.com.au
> ====================================================
>
> --
> To unsubscribe, send ANY message to <futurebasic-unsubscribe@...>