const check = (num) => { const {quotient, remainder} = bigInt (num).divmod (Math.pow (10, 18)) console.log ( num, quotient.toString (), remainder.toString (), bigInt (num).remainder (Math.pow (10, 18) ...
Return the integer square root of the nonnegative integer n. This is the floor of the exact square root of n, or equivalently the greatest integer a such that a² ≤ n. For some applications, it may be ...