dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] Re: [Bug #3487] Formatter.cs decimal padding passes ne


From: Gopal V
Subject: [Pnet-developers] Re: [Bug #3487] Formatter.cs decimal padding passes negative arg to StringBuilder.Insert
Date: Wed, 7 May 2003 11:38:56 +0530
User-agent: Mutt/1.2.5i

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 :-( ...

Gopal
-- 
The difference between insanity and genius is measured by success


reply via email to

[Prev in Thread] Current Thread [Next in Thread]