{"ScriptPreparationCode":"window.roundScale = (val, scale) =\u003E { return Math.round(val * scale) / scale; };\r\nwindow.roundPow = (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":"roundScale","Code":"roundScale(Math.random() * 100, 1000)","IsDeferred":false},{"Name":"roundPow","Code":"roundPow(Math.random() * 100, 3)","IsDeferred":false},{"Name":"bitRoundPow","Code":"bitRound(Math.random() * 100, 3)","IsDeferred":false}]}