Implicit conversion from float -18.399168399168417 to int loses precision