[英]how to remove decimal place in crystal report
i want to return a text or a number based on a field value in crystal report 我想根据水晶报表中的字段值返回文本或数字
local numberVar i;
i:=Roundup(({@a}/{@b})*100,0);
if{@a}=0 then ToText('N/A') else ToText(i);
the result is always this in crystal report 结果总是在水晶报告中
since the integer value is converted to text using ToText() the integer results are appended with .00 由于使用ToText()将整数值转换为文本,因此整数结果将附加.00
ToText (x, y) where y is a whole number indicating the number of decimal places to carry the value in x to. ToText(x,y)其中y是一个整数,表示在x中携带值的小数位数。
http://publib.boulder.ibm.com/infocenter/radhelp/v7r5/index.jsp?topic=%2Fcom.businessobjects.integration.eclipse.designer.doc%2Fhtml%2Ftopic629.html http://publib.boulder.ibm.com/infocenter/radhelp/v7r5/index.jsp?topic=%2Fcom.businessobjects.integration.eclipse.designer.doc%2Fhtml%2Ftopic629.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.