Format('%*.*f',[20,n,num]); //20以多少位的宽度内对齐, n小数点位数, 转载于:https://www.cnblogs.com/myart/archive/2013/01/06/2848455.html