开发者

Rounding/String Formatting Decimals in c#

value.ToString("##0.00000%;(##0.00000%);0.00000%");

I'm having trouble deciphering how this is being formatted. Would it ever display a value above that would be .00001 lower than the correct rounding, or if the number would just to be truncated at 5 decimal places?

Thanks 开发者_高级运维guys.


it rounds in the conventional way (e.g. 1-4 rounds down and 5-9 rounds up).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜