张志峰的博客

水滴石川,积少成多。

导航

 

uses SysUtils;

function StrToExp(s: string): string;
var
f: Extended;
begin
f := StrToFloat(s);
Result := FloatToStrF(f, ffExponent, 7, 2);
end;

然后这么用:
ShowMessage(StrToExp('2'));