JamesBowen
19+ years progress programming and still learning.
So I have found out today that .NET round() function as different result to ABL round() function.
.NET round(1.785, 2) = 1.78
ABL round(1.785, 2) = 1.79
.NET uses Bankers Rounding which has slightly different rules to the rounding we all learnt in school.
Has anyone else come across this in the wild? How did you handle it in the wild?
REF:
VBA Bankers Rounding
.NET round(1.785, 2) = 1.78
ABL round(1.785, 2) = 1.79
.NET uses Bankers Rounding which has slightly different rules to the rounding we all learnt in school.
Has anyone else come across this in the wild? How did you handle it in the wild?
REF:
VBA Bankers Rounding