JavaScript has a single Number type for both integers and floats.
parseInt()
parseFloat()
toFixed()
console.log(parseInt('15')); // 15 console.log(parseFloat('10.5')); // 10.5 console.log((2/3).toFixed(2)); // '0.67'