84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
We have string input numbers input="6145390195186705543" If we want to convert to a number; the java script automatically rounds this input;
(6145390195186705543)
(6145390195186705000)
This should suit what you want 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)
This should suit what you want to achieve