* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / class / System.XML / System.Xml.XPath / DefaultContext.cs
index 4745ae077fa938e74b5ee5db521d012cded3c90c..96ec9fc2a1cdc5b2f632dc4a5da60e399d327af2 100644 (file)
@@ -29,7 +29,7 @@
 //
 using System;
 using System.Collections;
-using System.Globalization;\r
+using System.Globalization;
 using System.Xml;
 using System.Xml.XPath;
 using System.Xml.Xsl;
@@ -119,8 +119,11 @@ namespace System.Xml.XPath
                        // Return string in roundtrip format (currently it
                        // rather breaks things, so we don't use it until
                        // System.Double gets fixed.)
-//                     return ((double) d).ToString ("R", System.Globalization.NumberFormatInfo.InvariantInfo);
+#if TARGET_JVM
+                       return d.ToString ("R", System.Globalization.NumberFormatInfo.InvariantInfo);
+#else
                        return ((double) d).ToString (System.Globalization.NumberFormatInfo.InvariantInfo);
+#endif
                }
 
                public static double ToNumber (object arg)