js 68n to int code example
Example 1: convert string to number javascript
var myString = "869.99"
var myFloat = parseFloat(myString)
var myInt = parseInt(myString)
Example 2: get the whole value of a number javascript
var value = 2.9802453587962963;
var wholeNum = Math.floor(value);
console.log(wholeNum); // output ==> 2