function ifIsDecimal(Strtmp: string): boolean;
var
r: TRegExpr;
begin
r:=TRegExpr.Create;
r.Expression:='\d*\.\d*'; //小数
r.ModifierI:=true;
r.Exec(Strtmp);
//if r.MatchPos[0]>=0 then
if r.MatchLen[0]=length(Strtmp) then
result := true
else
result := false;
end;