benvzq
Last Updated: February 25, 2016
·
2.32K
· amsul
092d5acd8c183020f5b96ceebab7d8f0

Shorthand to parse string to int or float

parseFloat( "1.032323" ) // result: 1.032323
parseInt( "1.032323", 10 ) // result: 1

Or

+"1.032323" // result: 1.032323
~~"1.032323" // result: 1
Say Thanks
Respond