Implicit conversion from float -2.991913746630729 to int loses precision