About DIV and ROUND lazarus / 67-Windows ---------------------------------------------------------------------- SaintMichael57 · 2018-02-27 20:05 Dear FreePascal Community: Why am I getting the following error messages? ROUND(Weight);  error: Illegal expression. (Weight DIV 2) error: Operator not overloaded: "Real" div "shortint" ---------------------------------------------------------------------- djzepi · 2018-02-27 20:33 Check yours code! Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i var  Weight:double;  w1,w2:integer; Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i begin  // ...  w1 := round(Weight);  w2 := w1 div 2;end;  See also http://wiki.freepascal.org/Div http://wiki.freepascal.org/Round http://wiki.freepascal.org/Becomes http://wiki.freepascal.org/Data_type