Why ASP and VBS when rounding if the integer part is odd and the decimal part is 5 the results go down, even when the result goes up ?
Please try it yourself:
a=1.5
wscript.echo clng(a) '---> 2
a=2.5
wscript.echo clng(a) '---> 2
a=3.5
wscript.echo clng(a) '---> 4
a=4.5
wscript.echo clng(a) '---> 4
a=5.5
wscript.echo clng(a) '---> 6
a=6.5
wscript.echo clng(a) '---> 6
How is it possible? I haven't found any documentation about this...
Sorry , the question is why for default VBS/ASP e VBA usr Banker's rounding?