Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript cast string to number

var x = "32";
var y = +x; // y: number
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typescript #cast #string #number
ADD COMMENT
Topic
Name
1+4 =