if (( mprecords_currentoutqty - round( mprecords_currentoutqty,0) = 0.00),"#,##0","#,##0,##")
如上,在数据窗口中我想设置某列当该列取整的值等于该列的值,则显示格式为"#,##0";
否则的话显示为"#,##0,##"
但我实际测试发现没有达到我想要的效果,不知道各位有没有碰到过类似的问题,如何解决的?
------解决方案--------------------
#,##0,##应该为#,##0.##或者#,##0.0#
------解决方案--------------------
既然这个没问题,你需要通用的话,就动态修改表达式好了
------解决方案--------------------
这样写
if (mprecords_currentoutqty = int(mprecords_currentoutqty ),'###,##0','###,##0.00')
或者是
if (( mprecords_currentoutqty - int( mprecords_currentoutqty,0) = 0.00),"#,##0","#,##0.##")