[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Private/NumberFormat S
From: |
Jonathan Springer <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Private/NumberFormat ScientificFormatter.cs,1.2,1.3 |
Date: |
Wed, 01 Jan 2003 13:13:00 -0500 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Private/NumberFormat
In directory subversions:/tmp/cvs-serv3152/runtime/System/Private/NumberFormat
Modified Files:
ScientificFormatter.cs
Log Message:
Support for parsing floating-point and decimal numbers.
Index: ScientificFormatter.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Private/NumberFormat/ScientificFormatter.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** ScientificFormatter.cs 27 Nov 2002 20:29:56 -0000 1.2
--- ScientificFormatter.cs 1 Jan 2003 18:12:58 -0000 1.3
***************
*** 71,74 ****
--- 71,78 ----
ret.Append(NumberFormatInfo(provider).NumberDecimalSeparator)
.Append(rawnumber.Substring(rawnumber.IndexOf('.')+1));
+ if (rawnumber.EndsWith("."))
+ {
+ ret.Append("0");
+ }
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Private/NumberFormat ScientificFormatter.cs,1.2,1.3,
Jonathan Springer <address@hidden> <=