From 613084ad9b8d3993a5f6337648dcf2536dd0be3a Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Fri, 15 Mar 2019 19:23:05 +0300 Subject: [PATCH] Clarify floor and ceil docs (KT-30418) --- runtime/src/main/kotlin/kotlin/math/math.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/src/main/kotlin/kotlin/math/math.kt b/runtime/src/main/kotlin/kotlin/math/math.kt index d227b9ff9c0..b288cc64725 100644 --- a/runtime/src/main/kotlin/kotlin/math/math.kt +++ b/runtime/src/main/kotlin/kotlin/math/math.kt @@ -284,7 +284,7 @@ external public actual fun ln1p(x: Double): Double /** * Rounds the given value [x] to an integer towards positive infinity. - * @return the smallest double value that is greater than the given value [x] and is a mathematical integer. + * @return the smallest double value that is greater than or equal to the given value [x] and is a mathematical integer. * * Special cases: * - `ceil(x)` is `x` where `x` is `NaN` or `+Inf` or `-Inf` or already a mathematical integer. @@ -296,7 +296,7 @@ external public actual fun ceil(x: Double): Double /** * Rounds the given value [x] to an integer towards negative infinity. - * @return the largest double value that is smaller than the given value [x] and is a mathematical integer. + * @return the largest double value that is smaller than or equal to the given value [x] and is a mathematical integer. * * Special cases: * - `floor(x)` is `x` where `x` is `NaN` or `+Inf` or `-Inf` or already a mathematical integer. @@ -833,7 +833,7 @@ external public actual fun ln1p(x: Float): Float /** * Rounds the given value [x] to an integer towards positive infinity. - * @return the smallest Float value that is greater than the given value [x] and is a mathematical integer. + * @return the smallest Float value that is greater than or equal to the given value [x] and is a mathematical integer. * * Special cases: * - `ceil(x)` is `x` where `x` is `NaN` or `+Inf` or `-Inf` or already a mathematical integer. @@ -845,7 +845,7 @@ external public actual fun ceil(x: Float): Float /** * Rounds the given value [x] to an integer towards negative infinity. - * @return the largest Float value that is smaller than the given value [x] and is a mathematical integer. + * @return the largest Float value that is smaller than or equal to the given value [x] and is a mathematical integer. * * Special cases: * - `floor(x)` is `x` where `x` is `NaN` or `+Inf` or `-Inf` or already a mathematical integer.