Bankers round function to reduce the accumulated error written in TS.
Banker's rounding for Javascript
Javascript number rounding library