@@ -4722,7 +4722,7 @@ extern SDL_DECLSPEC float SDLCALL SDL_atan2f(float y, float x);
4722
4722
/* *
4723
4723
* Compute the ceiling of `x`.
4724
4724
*
4725
- * The ceiling of `x` is the smallest integer `y` such that `y > x`, i.e `x`
4725
+ * The ceiling of `x` is the smallest integer `y` such that `y >= x`, i.e `x`
4726
4726
* rounded up to the nearest integer.
4727
4727
*
4728
4728
* Domain: `-INF <= x <= INF`
@@ -4750,7 +4750,7 @@ extern SDL_DECLSPEC double SDLCALL SDL_ceil(double x);
4750
4750
/* *
4751
4751
* Compute the ceiling of `x`.
4752
4752
*
4753
- * The ceiling of `x` is the smallest integer `y` such that `y > x`, i.e `x`
4753
+ * The ceiling of `x` is the smallest integer `y` such that `y >= x`, i.e `x`
4754
4754
* rounded up to the nearest integer.
4755
4755
*
4756
4756
* Domain: `-INF <= x <= INF`
@@ -4992,7 +4992,7 @@ extern SDL_DECLSPEC float SDLCALL SDL_fabsf(float x);
4992
4992
/* *
4993
4993
* Compute the floor of `x`.
4994
4994
*
4995
- * The floor of `x` is the largest integer `y` such that `y > x`, i.e `x`
4995
+ * The floor of `x` is the largest integer `y` such that `y <= x`, i.e `x`
4996
4996
* rounded down to the nearest integer.
4997
4997
*
4998
4998
* Domain: `-INF <= x <= INF`
@@ -5020,7 +5020,7 @@ extern SDL_DECLSPEC double SDLCALL SDL_floor(double x);
5020
5020
/* *
5021
5021
* Compute the floor of `x`.
5022
5022
*
5023
- * The floor of `x` is the largest integer `y` such that `y > x`, i.e `x`
5023
+ * The floor of `x` is the largest integer `y` such that `y <= x`, i.e `x`
5024
5024
* rounded down to the nearest integer.
5025
5025
*
5026
5026
* Domain: `-INF <= x <= INF`
0 commit comments