javascript convert a string to integer code example
Example 1: string to number js
let myNumber = Number("5.25"); //5.25
Example 2: hex string to int javascript
console.log(hex.toString(16));
let myNumber = Number("5.25"); //5.25
console.log(hex.toString(16));