{"ScriptPreparationCode":"window.roundScale = (val, scale) =\u003E { return Math.round(val * scale) / scale; };\r\nwindow.round = (val, precision) =\u003E { const m = 10 ** (precision || 0); return Math.round(val * m) / m; };\r\nwindow.bitRound = (val, precision) =\u003E { const m = 10 ** (precision || 0); return ((((val * m) \u002B 0.5) \u003C\u003C 1) \u003E\u003E 1) / m; };","TestCases":[{"Name":"round","Code":"round(Math.random() * 100, 3)","IsDeferred":false},{"Name":"bitRound","Code":"bitRound(Math.random() * 100, 3)","IsDeferred":false},{"Name":"roundScale","Code":"roundScale(Math.random() * 100, 1000)","IsDeferred":false}]}