文字列を数値に変換するメソッド
数字が丸まる
18桁目で四捨五入処理が入る
// 21桁
const num = 123456789012345678901
console.log(Number(num)) //123456789012345680000
console.log(parseInt(num)) //123456789012345680000
console.log(parseFloat(num)) //123456789012345680000
表記が変更される
// 22桁
const num = 1234567890123456789012
console.log(Number(num)) //1.2345678901234568e+21
console.log(parseInt(num)) //1
console.log(parseFloat(num)) //1.2345678901234568e+21