diff --git a/Userland/Libraries/LibM/math.cpp b/Userland/Libraries/LibM/math.cpp index 1ce7cebb53f..1a0cb993696 100644 --- a/Userland/Libraries/LibM/math.cpp +++ b/Userland/Libraries/LibM/math.cpp @@ -1413,4 +1413,19 @@ float fminf(float x, float y) NOEXCEPT return x < y ? x : y; } + +long double nearbyintl(long double value) NOEXCEPT +{ + return internal_to_integer(value, RoundingMode { fegetround() }); +} + +double nearbyint(double value) NOEXCEPT +{ + return internal_to_integer(value, RoundingMode { fegetround() }); +} + +float nearbyintf(float value) NOEXCEPT +{ + return internal_to_integer(value, RoundingMode { fegetround() }); +} }