T
Test User
Hi all,
I have learnt that if I want to round 0.5 to an integer the result should be
1, This is also the case if I do it in SQL server 2000, but if I do it in
VB.NET the result will be 0.
Other rounding results: 1.5 = 2 in SQL and 2 in VB.NET which I believe is
corrrect
2.5 = 3 in SQL and 2 in VB.NET which I believe is wrong.
Can anybody shed a light on this, please? Is this an American way of
rounding? Is there any European way of doing it in VB.NET?
Thorben
PS: The way VB.NET does this rounding is the way the manual describes it, I
just understand why things have changed, and why SQL-server does it
differently.
I have learnt that if I want to round 0.5 to an integer the result should be
1, This is also the case if I do it in SQL server 2000, but if I do it in
VB.NET the result will be 0.
Other rounding results: 1.5 = 2 in SQL and 2 in VB.NET which I believe is
corrrect
2.5 = 3 in SQL and 2 in VB.NET which I believe is wrong.
Can anybody shed a light on this, please? Is this an American way of
rounding? Is there any European way of doing it in VB.NET?
Thorben
PS: The way VB.NET does this rounding is the way the manual describes it, I
just understand why things have changed, and why SQL-server does it
differently.