we have string input number input="6145390195186705543" if we want to convert to number ;java Script auto rounded this input;
(6145390195186705543)
(6145390195186705000)
we have string input number input="6145390195186705543" if we want to convert to number ;java Script auto rounded this input;
(6145390195186705543)
(6145390195186705000)
This should work for what you are trying to achieve
const myFunction = (num) => {
const length = num.length;
const result = `(${num.slice(0,16).padEnd(length, "0")})`;
return result;
};
const input="6145390195186705543";
const output = myFunction(input);
console.log(output)