Revert "changed parseInt to parseFloat, improved behaviour but still issues with truncation"

This reverts commit 83bc03277f17f04e2593a205e4d49862b77f0d66.