[thelist] ASP 2.0 Functions

Chris Blessing webguy at mail.rit.edu
Mon Jul 22 07:58:01 CDT 2002


There we go.  I guess it's just odd for people like myself who have always
been taught to round "up".  Thanks for the info!

Chris Blessing
webguy at mail.rit.edu
http://www.330i.net

> Had to chip in here.
>
> I'm fairly sure that round(), in VBScript, rounds to the nearest
> even integer (e.g. answer mod 2 = 0) when the answer ends exactly in .5.
>
> So:
>
> 1.5 -> 2
> 2.5 -> 2
> 3.5 -> 4
> 4.5 -> 4
>
> etc.
>
> I don't know why that is. But then again, that's how the Australian
> government demands that you round GST (consumption tax) calculations,
> so there you are. I guess that it's because in the long run, assuming
> even distribution of inputs, the "errors" cancel each other out.
>
> Paul.




More information about the thelist mailing list