casting to float before doing toFixed()