[Mono-bugs] [Bug 25068] Changed - Error in Convert.ToString(value, base)

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
22 May 2002 20:25:13 -0000


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by ds99krha@thn.htu.se.

http://bugzilla.ximian.com/show_bug.cgi?id=25068

--- shadow/25068	Tue May 21 18:58:50 2002
+++ shadow/25068.tmp.9864	Wed May 22 16:25:13 2002
@@ -83,6 +83,22 @@
 The patch is attached.
 
 ------- Additional Comments From duncan@ximian.com  2002-05-21 18:55 -------
 Created an attachment (id=1758)
 Fixes ToString (int, int) and friends.
 
+
+------- Additional Comments From ds99krha@thn.htu.se  2002-05-22 16:25 -------
+Converts in the right direction now   :)
+It doesn't convert large numbers correctly
+
+long tryInt64 = 9223372036854775807;
+Console.WriteLine(Convert.ToString(tmpLong, 2)
+Console.WriteLine(Convert.ToString(tmpLong, 8)
+Console.WriteLine(Convert.ToString(tmpLong, 16)
+
+Output:
+0
+,
+$
+
+It converts correctly to about nine or ten digits