2006-11-26 Miguel de Icaza <miguel@novell.com>
authorMiguel de Icaza <miguel@gnome.org>
Mon, 27 Nov 2006 04:26:46 +0000 (04:26 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Mon, 27 Nov 2006 04:26:46 +0000 (04:26 -0000)
* Math.cs: Add Floor(Decimal d), for CreativeDocs.NET.

Go Moma!  http://www.mono-project.com/Moma

svn path=/trunk/mcs/; revision=68494

mcs/class/corlib/System/ChangeLog
mcs/class/corlib/System/Math.cs

index f8f8170bc798cc010c378caa0b17da7a629ee6f7..6e382d0ef6d476208a821c97fcd538a0378a0a20 100644 (file)
@@ -1,7 +1,13 @@
 2006-11-26  Miguel de Icaza  <miguel@novell.com>
 
+       * Math.cs: Add Floor(Decimal d), for CreativeDocs.NET.
+
+       Go Moma!  http://www.mono-project.com/Moma
+
        * Decimal.cs: Refactor code to implement TryParse.
 
+       Also, avoid initializing messages on every call to stripStyles
+
 2006-11-22  Miguel de Icaza  <miguel@novell.com>
 
        * DateTime.cs: A small performance hit, we store the actual time
index 8b2316cd2da070d4af273c13c4d8e4f621bc8bb3..097ae04846c0a7be6bb27ceb0da6f7b1e4cc999b 100644 (file)
@@ -436,6 +436,11 @@ namespace System
                {
                        return Decimal.Truncate (d);
                }
+
+               public static decimal Floor (Decimal d)
+               {
+                       return Decimal.Floor (d);
+               }
 #endif
 
                public static int Sign (decimal value)