Explorar o código

LibM: Add floorf() for @rexim :^)

Andreas Kling %!s(int64=5) %!d(string=hai) anos
pai
achega
8f293b7543
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      Libraries/LibM/math.cpp

+ 5 - 0
Libraries/LibM/math.cpp

@@ -410,6 +410,11 @@ float roundf(float value)
     return (float)(int)(value - 0.5f);
 }
 
+float floorf(float value)
+{
+    return (int)value;
+}
+
 double floor(double value)
 {
     return (int)value;