{"ScriptPreparationCode":"var someFloat = 0.123456789;\r\n var round_to_precision = function (x, precision) {\r\n var y = \u002Bx \u002B (precision === undefined ? 0.5 : precision/2);\r\n return y - (y % (precision === undefined ? 1 : \u002Bprecision));\r\n};","TestCases":[{"Name":"toFixed(4)","Code":"someFloat.toFixed(4);","IsDeferred":false},{"Name":"toPrecision(4).toString()","Code":"someFloat.toPrecision(4);","IsDeferred":false},{"Name":"(Math.round(*10000)/10000).toString()","Code":"(Math.round(someFloat*10000)/10000);\r\n","IsDeferred":false},{"Name":"Math.floor fast","Code":"~~(someFloat * 10000) / 10000;","IsDeferred":false},{"Name":"precisition round","Code":"round_to_precision(someFloat, 4);","IsDeferred":false}]}