{"ScriptPreparationCode":null,"TestCases":[{"Name":"bigint","Code":"const precision = 1e8;\r\nconst bpsPrecision = BigInt(1e4);\r\nconst a = BigInt(\u0027123456\u0027);\r\nconst b = BigInt(\u0027124456\u0027);\r\nconst c = ((b * bpsPrecision) / a) - bpsPrecision;","IsDeferred":false},{"Name":"decimal.js","Code":"const a = new Decimal(\u0027123.456\u0027);\r\nconst b = new Decimal(\u0027123.456\u0027);\r\nconst c = b.div(a).minus(1).mul(1e4)","IsDeferred":false},{"Name":"native (parseFloat int)","Code":"const precision = 1e8;\r\nconst a = Math.trunc(parseFloat(\u002712345.6\u0027));\r\nconst b = Math.trunc(parseFloat(\u002712445.6\u0027));\r\nconst c = Math.trunc(((b * 1e4) / a) - 1e4);","IsDeferred":false},{"Name":"native (float)","Code":"const precision = 1e8;\r\nconst a = parseFloat(\u0027123.456\u0027);\r\nconst b = parseFloat(\u0027124.456\u0027);\r\nconst c = ((b * 1e4) / a) - 1e4;","IsDeferred":false},{"Name":"native (int parseInt)","Code":"const precision = 1e8;\r\nconst a = parseInt(\u002712345.6\u0027);\r\nconst b = parseInt(\u002712445.6\u0027);\r\nconst c = Math.trunc(((b * 1e4) / a) - 1e4);","IsDeferred":false}]}