Answers for "get numbers from string js"

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
3

js get number from string

thenum = "foo3bar5".match(/\d+/)[0] // "3"
Posted by: Guest on January-08-2021

Code answers related to "get numbers from string js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language