Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript string to number

var x = "32";
var y: number = +x;//the "+" converts string to number
 
PREVIOUS NEXT
Tagged: #typescript #string #number
ADD COMMENT
Topic
Name
9+9 =