//十捨五入文字輸出
public string toString(double d)
{
string str = string.Format("{0:###0.000}", d);
if (str.ToCharArray()[str.Length - 1] >= '5')
d += 0.005;
return string.Format("{0:###0.##}", d);
}
1 則留言:
Hello. This post is likeable, and your blog is very interesting, congratulations :-). I will add in my blogroll =). If possible gives a last there on my blog, it is about the Perfume, I hope you enjoy. The address is http://perfumes-brasil.blogspot.com. A hug.
張貼留言