Implicit conversion from float -50.599999999999994 to int loses precision