Answers for "how to convert a sring to a number in javascript'"

122

javascript convert string to number

var myInt = parseInt("10.256"); //10
var myFloat = parseFloat("10.256"); //10.256
Posted by: Guest on July-23-2019
0

JS cast a Number into a String

const number = 42;
console.log(number.toString());
// => "42"
Posted by: Guest on September-15-2021

Code answers related to "how to convert a sring to a number in javascript'"

Code answers related to "Javascript"

Browse Popular Code Answers by Language