js int to string
snippet in javascript

Javascript string to int

user3003

var myInt = parseInt("10.256"); //10
var myFloat = parseFloat("10.256"); //10.256

js int to string

user6155

var myNumber=120;
var myString = myNumber.toString(); //converts number to string "120"

javascript to string

user9118

num.toString();

how to turn number into string javascript

user1934


var myNumber=120;
var myString = myNumber.toString(); //converts number to string "120"

javascript decimal to string

user7187

<script language="JavaScript" type="text/javascript"> 
var a = 3.3445;
var c = a.toString();
alert(c);
</script>
   

tostring js

user1056

var num = 15;
var n = num.toString(); /* now */ "15"