[英]Is there a format with fixed number of digits in c#?
我的意思是如果我設置為6
if I have 123, I would get 123.000
if I have 123.45, I would get 123.450
if I have 123456 I would 123456
if I have 1234567 I would get 1234567
在數學中有一個名字,雖然我不記得了。
我在這里看不到它? http://msdn.microsoft.com/en-us/library/dwhawy9k.aspx
我的問題是C#NOT JAVA以及如果它不存在自定義算法而使用這種語言的STANDARD,因為有些人翻閱了:他們似乎重新發明了輪子。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.