Replaced parseInt with parseFloat