fixes unreliable rounding in various browsers

short version of:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/round

eg: rounding of 1.0005 with precision of 3 is different in IE than in
Chrome

string res = string.Format(CultureInfo.CurrentCulture, "{0:3}", 1.0005);