Why is 7 / 2 not an Integer? The compiler is angry with me
· #1Coming from JavaScript, I wrote this:
var
Half: Integer;
begin
Half := 7 / 2;
end.and got:
Error: Incompatible types: got "Double" expected "LongInt"In my old life this would just work. Badly, but it would work.