There are several different methods for converting floating point numbers to Integers in JavaScript. My question is what method gives the best performance, is most compatibl
you could also do it this way:
var string = '1'; var integer = a * 1;