Hello, world.
I am confused by FPC's refusal to understand my intent:
if (MaxVal mod NumSegments = 0)
then SegmentVal:=MaxVal div NumSegments
else SegmentVal:= int(MaxVal/NumSegments);
Error: Incompatible types: got "Double" expected "LongInt"
Having already perused the forum, I've changed my vars to double...but...
FullSegments:=CurVal div SegmentVal;
Error: Operator is not overloaded: "LongInt" div "Double"
Oh, right, Because being NOT overloaded is a reason to complain? o_O
Whiskey Tango Foxtrot, over?