{"ScriptPreparationCode":"var x = Math.random() * 100;","TestCases":[{"Name":"Round floating number using lodash round function","Code":"for (var i = 0; i \u003C 1000; i\u002B\u002B) {\r\n _.round(x, 2);\r\n}","IsDeferred":false},{"Name":"Round float number with Math.round","Code":"for (var i = 0; i \u003C 1000; i\u002B\u002B) {\r\n Math.round(x * 100) / 100\r\n}","IsDeferred":false},{"Name":"Round floating number using toFixed()","Code":"for (var i = 0; i \u003C 1000; i\u002B\u002B) {\r\n Number(x.toFixed(2));\r\n}","IsDeferred":false}]}