水晶报表交叉表小数位0的显示问题 报表中对于数字字段,如果设置其保留小数位4位,这样一来:12会显示为12.0000,12.011会显示为12.0110。而我想要实现以下结果:12会显示为12,12.011会显示为12.011。在网上找到以下处理方法: if Right(ToText(({VS_XSFaHuoFX.ShuLiang}),4), 4)='0000' then 0 else if Right(ToText(({VS_XSFaHuoFX.ShuLiang}),4),3)='000' then 1 else if Right(ToText(({VS_XSFaHuoFX.ShuLiang}),4),2)='00' then 2 else if Right(ToText(({VS_XSFaHuoFX.ShuLiang}),4),1)='0' then 3 else 4