{"ScriptPreparationCode":"function roundCase(num, prec)\r\n{\r\n const roundDec = Decimal.clone({ precision: prec\u002B1, rounding: prec});\r\n return roundDec(num).toDecimalPlaces(prec).toNumber();\r\n}\r\n\r\nfunction roundLogan(num, prec) {\r\n return Number(Math.round(num\u002B\u0027e\u0027\u002Bprec)\u002B\u0027e-\u0027\u002Bprec);\r\n}","TestCases":[{"Name":"Decimal.js","Code":"const answer = roundCase(1.005,2);","IsDeferred":false},{"Name":"Native","Code":"const answer = roundLogan(1.005,2);","IsDeferred":false}]}