[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] Re: [Bug #3487] Formatter.cs decimal padding passes ne
[Pnet-developers] Re: [Bug #3487] Formatter.cs decimal padding passes negative arg to StringBuilder.Insert
Wed, 7 May 2003 11:38:56 +0530
If memory serves me right, address@hidden wrote:
> // Pad out significant digits
> if (ret.Length < scale)
> - ret.Insert(0, "0", ret.Length - scale);
> + ret.Insert(0, "0", scale - ret.Length);
The patch looks Ok , and I'm committing this now ... (it's obviously correct !).
Nice catch !
For the rest of the problem , I think we'll all need more help :-) ... The
most exasperating thing about all this is that you can't use Console.WriteLine
with the formatting code :-( ...
The difference between insanity and genius is measured by success