//这是我正在用的:
function tobig(str:string):string;
var
i,nPos:integer;
currstr,newstr,tmpstr,counstr:string;
begin
newstr:='分';
nPos:=pos('.',str);
if nPos=0 then
str:=str+'.00' else
if length(str)-nPos=1 then
str:=str+'0';
nPos:=pos('.',str);
tmpstr:=leftstr(str,nPos-1)+copy(str,nPos+1,2);
for i:=length(tmpstr)do
wnto 1do
begin
case strtoint(copy(tmpstr,i,1)) of
0:
currstr:=' 零 ';
1:
currstr:=' 壹 ';
2:
currstr:=' 贰 ';
3:
currstr:=' 叁 ';
4:
currstr:=' 肆 ';
5:
currstr:=' 伍 ';
6:
currstr:=' 陆 ';
7:
currstr:=' 柒 ';
8:
currstr:=' 捌 ';
9:
currstr:=' 玖 ';
end;
newstr:=currstr+newstr;
case length(tmpstr)-i+1 of
1:
counstr:='角';
2:
counstr:='元';
3:
counstr:='拾';
4:
counstr:='佰';
5:
counstr:='仟';
6:
counstr:='万';
7:
counstr:='拾';
8:
counstr:='佰';
9:
counstr:='仟';
10:
counstr:='亿';
11:
counstr:='拾';
12:
counstr:='佰';
13:
counstr:='仟';
14:
newstr:='Sorry!';
end;
if i>1 then
newstr:=counstr+newstr;
end;
Result := newstr;
end;