Browse Source

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

Andreas Kling 5 years ago
parent
commit
8f293b7543
1 changed files with 5 additions and 0 deletions
  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);
     return (float)(int)(value - 0.5f);
 }
 }
 
 
+float floorf(float value)
+{
+    return (int)value;
+}
+
 double floor(double value)
 double floor(double value)
 {
 {
     return (int)value;
     return (int)value;