Answers for "convert a string to a number"

121

string to number js

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

javascript string to a decimal

<script language="JavaScript" type="text/javascript">
var a = "3.3445";
var c = parseFloat(a);
alert(c);
</script>
Posted by: Guest on March-02-2020
9

string to int javascript

var text = '42px';
var integer = parseInt(text, 10);
// returns 42
let myNumber = Number("5.25"); //5.25
Posted by: Guest on May-10-2020
6

conversion of string to integer in java

Integer.parseInt(str);
Posted by: Guest on August-16-2020
5

string to int javascript

var text = '42px';
var integer = parseInt(text, 10);
// returns 42
Posted by: Guest on June-15-2020
-1

Converting strings to numbers

parseInt('101', 2) // 5
Posted by: Guest on July-13-2021

Code answers related to "convert a string to a number"

Code answers related to "Javascript"

Browse Popular Code Answers by Language