int to float js code example Example 1: convert int to float in javascript parseFloat("4").toFixed(2) Example 2: number to float js (3).toFixed(1)