dotgnu-general
[Top][All Lists]
Advanced

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

Re: [DotGNU]Call for test cases... Numeric Formatting


From: Gopal V
Subject: Re: [DotGNU]Call for test cases... Numeric Formatting
Date: Mon, 25 Nov 2002 23:25:01 +0530
User-agent: Mutt/1.2.5i

If memory serves me right, Jonathan P Springer wrote:
> custom formats and a complete implementation of IFormattable.ToString()
> for the built-in numeric types.  There's a new namespace
> (System.Private.NumberFormat) and 11 classes depending upon the type of
> formatting being requested.  And lots of "Template Method" patter code :).

Had a hell of a weekend ? .. :-) ...

>       1.  How should negative numbers be displayed in hex?  I'm just
>       taking the unsigned two's complement internal representation.

that's the way gcc's printf does it ... but could someone test on .NET
and tell the list ?..

>       2.  ECMA defines decimal and group separators (and positive and
>       negative signs) as strings.  Should pnetlib be prepared for
>       multi-character signs?

Would that be much of an issue on formatting ? ... I thought that was
more concerned with parsing the strings into types ...

Btw, I have some happy news as well ... the parrot CVS now has a 
dotgnu.ops file carrying some of the opcodes needed for supporting
sized integers in parrot (Int32,16,8..) ... So we're moving on the 
parrot front now ..(and now we can add new opcodes if needed)...

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


reply via email to

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