LibM: Add floorf() for @rexim :^)
This commit is contained in:
parent
16965db86b
commit
8f293b7543
Notes:
sideshowbarker
2024-07-19 06:37:50 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/8f293b7543d
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue