ftFloat, ftCurrency:
if Footer.DisplayFormat <> '' then
Result := FormatFloat(Footer.DisplayFormat, v)
else
with Field as TFloatField do
begin
FmtStr := DisplayFormat;
if FmtStr = '' then
begin
if Currency then
begin
Format := ffCurrency;
Digits := CurrencyDecimals;
end
else begin
Format := ffGeneral;
Digits := 0;
end;
Result := FloatToStrF(v, Format, Precision, Digits);
end else
Result := FormatFloat(FmtStr, v);
end;
end;
end;