dotgnu-pnet-commits
[Top][All Lists]
Advanced

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

[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Private NumberFormatte


From: Gopal.V <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Private NumberFormatter.cs,1.8,1.9
Date: Sun, 03 Nov 2002 15:11:51 -0500

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Private
In directory subversions:/tmp/cvs-serv5027/runtime/System/Private

Modified Files:
        NumberFormatter.cs 
Log Message:
Float & Double ToString()


Index: NumberFormatter.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Private/NumberFormatter.cs,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** NumberFormatter.cs  5 Oct 2002 06:53:57 -0000       1.8
--- NumberFormatter.cs  3 Nov 2002 20:11:49 -0000       1.9
***************
*** 25,28 ****
--- 25,29 ----
  using System;
  using System.Globalization;
+ using System.Runtime.CompilerServices;
  
  internal sealed class NumberFormatter
***************
*** 320,324 ****
                                                                          
NumberFormatInfo nfi)
        {
!               return "";
        }
  
--- 321,325 ----
                                                                          
NumberFormatInfo nfi)
        {
!               return FormatReal(((double) value),"%.6g",16);
        }
  
***************
*** 327,332 ****
                                                                          
NumberFormatInfo nfi)
        {
!               return "";
        }
  
        // Format a number in a specific base.
--- 328,337 ----
                                                                          
NumberFormatInfo nfi)
        {
!               return FormatReal(value,"%.14g",24);
        }
+ 
+       // Formats a double using the snprintf style <format> format.
+       [MethodImpl(MethodImplOptions.InternalCall)]
+       extern public static String FormatReal(double d, String format, int 
buflen);
  
        // Format a number in a specific base.





reply via email to

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