diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-15 21:51:02 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-15 21:51:02 +0200 |
commit | 8f293b7543d58a2685dcfd2c2ebc2708eae70932 (patch) | |
tree | 6fe76f49e50b12efc13c9893a3d1e9d8265d8349 /Libraries/LibM | |
parent | 16965db86bde2c6c21ad8450872a9df6a7809a34 (diff) | |
download | serenity-8f293b7543d58a2685dcfd2c2ebc2708eae70932.zip |
LibM: Add floorf() for @rexim :^)
Diffstat (limited to 'Libraries/LibM')
-rw-r--r-- | Libraries/LibM/math.cpp | 5 |
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; |