Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

cast string to int angular

Exactly like in JavaScript, you can use the parseInt or parseFloat functions,
 or simply use the unary + operator:
var x = "32";
var y: number = +x;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #cast #string #int #angular
ADD COMMENT
Topic
Name
3+4 =