summaryrefslogtreecommitdiff
path: root/Libraries/LibM
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-05-15 21:51:02 +0200
committerAndreas Kling <kling@serenityos.org>2020-05-15 21:51:02 +0200
commit8f293b7543d58a2685dcfd2c2ebc2708eae70932 (patch)
tree6fe76f49e50b12efc13c9893a3d1e9d8265d8349 /Libraries/LibM
parent16965db86bde2c6c21ad8450872a9df6a7809a34 (diff)
downloadserenity-8f293b7543d58a2685dcfd2c2ebc2708eae70932.zip
LibM: Add floorf() for @rexim :^)
Diffstat (limited to 'Libraries/LibM')
-rw-r--r--Libraries/LibM/math.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Libraries/LibM/math.cpp b/Libraries/LibM/math.cpp
index 43918923c8..38d9edec1d 100644
--- a/Libraries/LibM/math.cpp
+++ b/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;