I am using the following to calculate per hour rates for different vars, but i am getting a math error for some reason.
SCAR Code:var
ExpPH, PicksPH : Integer;
H, M, S : Integer;
procedure HandlePHCalc;
begin
ConvertTime(GetTimeRunning, H, M, S);
ExpPH := Round(ExpEarned div (H + (M/60)));
PicksPH := Round((ArrowsPicked+NotesPicked) div (H + (M/60)));
end;
Could someone help me out?![]()



Reply With Quote






