Answers for "javascript get int val"

0

javascript get int val

parseInt("123.00");//123
Posted by: Guest on March-22-2021
0

int val javascript

var my_number = "43";
console.log(parseInt(my_number)); // result: 43

//syntax: parseInt(string, base);
parseInt("F", 16); // result: 15
parseInt("17", 8); // result: 15
parseInt("15", 10); // result: 15
parseInt(15.99, 10); // result: 15
parseInt("FXX123", 16); // result: 15
parseInt("1111", 2); // result: 15
parseInt("15*3", 10); // result: 15
parseInt("12", 13); // result: 15
Posted by: Guest on December-17-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language