The round function uses mathematical rules, not business or financial rules.
The mathematic round rule states that the decimal digits get rounded so that the last digit, after the rounding, is always an even number. This is sometimes why a .5 may round down and not up.
Round(0.05, 1) = 0
Round(0.15, 1) = 0.2
Round(0.25, 1) = 0.2
Round(0.35, 1) = 0.4
Round(0.45, 1) = 0.4
Round(0.55, 1) = 0.6
Round(0.65, 1) = 0.6
The financial rules state that this last digit doesn't matter if it is even or not.
The first digit after the decimal-place-to-round-to rounds up if >= 5, and rounds down if < 5.
Round(0.05, 1) = 0.1
Round(0.15, 1) = 0.2
Round(0.25, 1) = 0.3
Round(0.35, 1) = 0.4
Round(0.45, 1) = 0.5
Round(0.55, 1) = 0.6
Round(0.65, 1) = 0.7
[/b][/i][/u]*******************************************************
General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!