{"ScriptPreparationCode":"function _numberWithCommas(strNum) {\r\n return strNum.replace(/\\B(?\u003C!\\.\\d*)(?=(\\d{3})\u002B(?!\\d))/g, \u0022,\u0022);\r\n}\r\n\r\nfunction numberFloorFormat (num, decimal, roundMode, fillingZero) {\r\n let rounded;\r\n if (roundMode === \u0027up\u0027) {\r\n rounded = _.ceil(num, decimal);\r\n } else if (roundMode === \u0027down\u0027) {\r\n rounded = _.floor(num, decimal);\r\n }\r\n\r\n let strNum;\r\n if (fillingZero) {\r\n strNum = rounded.toFixed(decimal);\r\n } else {\r\n \tstrNum = rounded.toString();\r\n }\r\n return _numberWithCommas(strNum);\r\n};\r\n\r\n\r\nvar intlFormat = Intl.NumberFormat({roundingMode: \u0027floor\u0027, maximumFractionDigits: 8}).format;\r\n","TestCases":[{"Name":"C1","Code":"new BigNumber(12345678.123456).toFormat(8, BigNumber.ROUND_FLOOR)","IsDeferred":false},{"Name":"S1","Code":"numberFloorFormat(12345678.123456, 8, \u0027down\u0027, true)","IsDeferred":false},{"Name":"C2","Code":"new BigNumber(12345678.123456).toFormat(8, BigNumber.ROUND_CEIL)","IsDeferred":false},{"Name":"S2","Code":"numberFloorFormat(12345678.123456, 8, \u0027up\u0027, true)","IsDeferred":false},{"Name":"C3","Code":"new BigNumber(12345678.123456).dp(8, BigNumber.ROUND_CEIL).toFormat()","IsDeferred":false},{"Name":"S3","Code":"numberFloorFormat(12345678.123456, 8, \u0027up\u0027, false)","IsDeferred":false},{"Name":"INTL1","Code":"intlFormat(12345678.123456)","IsDeferred":false}]}