Topic: floating point error
Hi All!
Hope all of y'all are safe. I am using 6.3 and I get a floating point error.
My code is :
procedure CalculateTotal;
begin
BA.edBA.Value := BA.edH.Value / BA.edAB.Value; // calculate
end;
procedure BA_edAB_OnChange (Sender: string);
begin
CalculateTotal;
end;
procedure BA_edH_OnChange (Sender: string);
begin
CalculateTotal;
end;
I am trying to get the BA of my daughter for her softball games.
example :
3 At Bats (AB)
1 Hit (H)
1 H / 3 AB = .333 Batting Average (BA) = very good by the way.
The error and I also have a formatting issue on the tablegrid.
Thanks,
scribtx