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).
精彩评论