Implicit conversion from float -40.35971223021582 to int loses precision