Sollte Code erforderlich sein:
Delphi-Quellcode:
function getFormatted(value: String; decPlaces: Integer): Real;
var toFormat: Real;
begin
if value = '' then toFormat:= 0 else toFormat:= StrToFloat(value);
result:=StrToFloat(format('%.' + IntToStr(decPlaces) + 'n', [toFormat]));
end;
Cheers
Per