Please note this is not a similiar question, The javascript Number
method basically converts string
to number
or int
but also it does round up the number:
const roundedUpNumber = Number("9333852702227987")
console.log(roundedUpNumber) // 9333852702227988
How can I just convert string
to number
or int
without doing anything else to the string number in javascript
?