数据类型处理

查找字符串/字符:
int i;
;
i=strscan(“ABCDD”,“BCFF”,1,strlen(“ABCDD”));

info(strfmt("%1",i));
strfind("ABCDD","BCFF",1,strlen("ABCDD"));

strLFix/strRFix 这2个函数用来处理缺位补位:
info(strLFix(“AAABBB”,8,“0”));
info(strRFix(“AAABBB”,8,“0”));
保留小数:
real num=12.3344;
info(strfmt("%1",round(num,0.01)));// 12.33
info(strfmt("%1",round(num,1)));//12.00

info(strfmt("%1",roundup(num,0.01)));//12.34
info(strfmt("%1",roundup(num,1)));//13.00
info(strfmt("%1",roundup(num,2)));//14.00

你可能感兴趣的:(ERP(AX2009))