tempalpha="$1"; ctempmag=$2; if [ $tempalpha == "00000000" ] then CSTR=""; return 0; fi let templength="${#tempalpha}";
CSTR=""; for ((m=0;mdo tempi=${tempalpha:m:1}; let tempj="$templength-$m-1";
if ((( tempi == 0 )) && (( tempj ==4 ))); then CSTR=$CSTR"万"; elif (( tempi == 0 )); then CSTR=$CSTR${cnum[0]}; else CSTR=$CSTR${cnum[$tempi]}${cmag[$tempj]}; fi
done
CSTR=$(echo $CSTR | sed -e 's/零零*/零/g' -e 's/零$//g' -e 's/零零零万//g'); CMAG=""; for ((m=0;mdo CMAG=$CMAG"亿"; done
CSTR=$CSTR$CMAG; }
alpha=$1; length=${#alpha}; let k="$length/8"; let modl="$length%8"; MYSTR="";
tempstr=${alpha:0:$modl}; if ((modl>0)); then cconvert $tempstr $k; fi
MYSTR=$MYSTR$CSTR; for ((i=0;ido let pos="$i*8+modl"; tempstr=${alpha:$pos:8}; let tempmag="$k-$i-1"; cconvert $tempstr $tempmag; MYSTR=$MYSTR$CSTR; done