už jsem to vyřešil chyba byla v tom že to vychazelo občas na desetiná místa proto jsem tam místo int dal double