[Mono-devel-list] About Number Formatting

yoros at wanadoo.es yoros at wanadoo.es
Sat Mar 8 12:24:08 EST 2003


As many people knows, I'm working in Number Formatting for .ToString
methods. I had a trouble with my implementation (it was incomplete) and
I found that the formattirng can be done with certain numeric patterns.

Now, I'm starting the implementation of the helper function that process
the format string and generates the output string for a value. I got the
documentation for this purpose from Microsoft documents (MSDN) but it is
a bit insufficient for me. Do anyone knows the Regular Expression that
follows the format string?

I have a little one:

    A= [0#]*(,[0#]+)*,*(.[#0]*)?([eE][+-]0*)?

	B= (%A|A%)


	** All Other characters and strings enclosed in single or double
    quotes are copied without change.

Can anybody give me a hand?
I attach the MS document in ps format.

Thank you,


Pedro Martinez Juliá
\  yoros at terra.es
)|    yoros at wanadoo.es
/        http://yoros.cjb.net
Socio HispaLinux #311
Usuario Linux #275438 - http://counter.li.org
GnuPG public information:  pub  1024D/74F1D3AC
Key fingerprint = 8431 7B47 D2B4 5A46 5F8E  534F 588B E285 74F1 D3AC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Formatting.ps.gz
Type: application/octet-stream
Size: 6524 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030308/bb7fbd26/attachment.obj 

More information about the Mono-devel-list mailing list