{"ScriptPreparationCode":null,"TestCases":[{"Name":"Round floating number using lodash round function","Code":"for (var i = 0; i \u003C 10; i = i \u002B 0.01) {\r\n _.round(i, 2);\r\n}","IsDeferred":false},{"Name":"Round floating number using toFixed()","Code":"const b = 2;\r\nfor (var i = 0; i \u003C 10; i = i \u002B 0.01) {\r\n const meow = b * 10;\r\n Math.round(i * meow) / meow\r\n}","IsDeferred":false},{"Name":"tofixed","Code":"const b = 2;\r\nfor (var i = 0; i \u003C 10; i = i \u002B 0.01) {\r\n parseFloat(i.toFixed(b))\r\n}","IsDeferred":false}]}