Answers for "convert string to number in angular 6"

132

how to convert string to int js

let string = "1";
let num = parseInt(string);
//num will equal 1 as a int
Posted by: Guest on February-24-2020
6

string to number angularjs

parseInt(....)
Posted by: Guest on October-04-2020
11

typescript string to number

var x = "32";
var y: number = +x;//the "+" converts string to number
Posted by: Guest on August-13-2020

Code answers related to "convert string to number in angular 6"

Code answers related to "Javascript"

Browse Popular Code Answers by Language