I have been using Math.Round(myNumber, MidpointRounding.ToEven)
in c# to do my server-side rounding, however, the user needs to know 'live' what the result of the server-side operation will be which means (avoiding an ajax request) creating a javascript method to replicate the MidpointRounding.ToEven
method used by c#.
MidpointRounding.ToEven is Gaussian/Bankers rounding, a very common rounding method for accounting systems described here.
Does anyone have any experience with this? I have found examples online but they do not round to a given number of decimal places...