Implicit conversion from float -24.9812734082397 to int loses precision