如何在不返回指数部分的情况下删除所有可能的尾随零点 [英] How Do I Remove All Possible Trailing Zero Without Returning Exponential Part
本文介绍了如何在不返回指数部分的情况下删除所有可能的尾随零点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望删除尾随零,而不使用正则表达式和用户定义函数。
.net function 我可以使用获取以下结果。
1.00 = 1
0.00 = 0
01.00 = 1
01. = 1
.0 = 0
0.100 = 0.1
00111 = 111
0.0000001 = 0.0.0000001
i want to remove trailing zero as following result without using regular expression and user define function.
which .net function can i use for getting following Result.
1.00 = 1
0.00 = 0
01.00 =1
01. =1
.0 =0
0.100 =0.1
00111 =111
0.0000001 =0.0.0000001
推荐答案
你甚至谷歌?
最接近问题的答案是:
如何在小数后删除尾随零 [ ^ ]
也许由同学发表?
Do you even google?
There is a response near the top of the questions:
How Do I Remove Trailing Zeros Only After Decimals[^]
Posted by a classmate, perhaps?
这篇关于如何在不返回指数部分的情况下删除所有可能的尾随零点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文