Auch bei mir ist das Ergebnis 17. Das kann am Fließkommaprozessor deines Rechners liegen!?
Teste einmal das:
Code:
private ["_x1","_x2","_x3","_x4","_iTotalCount","_x3Percent"];
_x1 = 3;
_x2 = 2;
_x3 = 1;
_x4 = 0;
_iTotalCount = _x1+_x2+_x3+_x4;
_x3Percent = if ( _x3 >= 1 ) then { round (_x3/_iTotalCount*100) } else {"0"};
hint format["%1", _x3Percent];