我想仅当no为12.00或任何.00作为12时才将数字(9,2)值显示为整数我要删除.00 [英] i want to display numeric(9,2) values as integer only if no is 12.00 or anything .00 as 12 i want remove .00
本文介绍了我想仅当no为12.00或任何.00作为12时才将数字(9,2)值显示为整数我要删除.00的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
仅当no为12.00或.00为12时,我才希望将数字(9,2)值显示为整数.我想在网格或转发器中显示数据时删除.00,请回复
i want to display numeric(9,2) values as integer only if no is 12.00 or anything .00 as 12 i want remove .00 while showing data in a grid or repeater pls reply
推荐答案
strng.Format("{0 : D}",12.00)
避免在0 、:和D之间留空格.
avoide the space between 0, : and D..
这篇关于我想仅当no为12.00或任何.00作为12时才将数字(9,2)值显示为整数我要删除.00的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文