|
[high, low] = [high + Math.trunc(low / Math.pow(10, 15)), low % Math.pow(10, 15)];
|
|
[high, low] = [high + Math.trunc(low / Math.pow(10, 15)), low % Math.pow(10, 15)];
|
|
return `${high}${Math.abs(low).toString().padStart(15, '0')}`;
|
|
return `${high}${Math.abs(low).toString().padStart(15, '0')}`;
|
|
const bigNumCompare = (num1, num2) => Math.sign(Number(bigNumPlus(num1, num2.replace(/^([+-]?)(\d+)/, (_, $1, $2) => `${$1 === '-' ? '' : '-'}${$2}`))));
|
|
const bigNumCompare = (num1, num2) => Math.sign(Number(bigNumPlus(num1, num2.replace(/^([+-]?)(\d+)/, (_, $1, $2) => `${$1 === '-' ? '' : '-'}${$2}`))));
|