From aa04f60df4e3f29a8cf5bdc51624e3ee94bbfe81 Mon Sep 17 00:00:00 2001 From: Abduqodiri Qurbonzoda Date: Fri, 16 Apr 2021 05:49:21 +0300 Subject: [PATCH] [K/N] Fix Floating.toInt/toLong doc --- .../runtime/src/main/kotlin/kotlin/Primitives.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/Primitives.kt b/kotlin-native/runtime/src/main/kotlin/kotlin/Primitives.kt index e2a2577732e..17268a00ba3 100644 --- a/kotlin-native/runtime/src/main/kotlin/kotlin/Primitives.kt +++ b/kotlin-native/runtime/src/main/kotlin/kotlin/Primitives.kt @@ -1573,7 +1573,7 @@ public final class Float private constructor() : Number(), Comparable { /** * Converts this [Float] value to [Int]. * - * The fractional part, if any, is rounded down. + * The fractional part, if any, is rounded down towards zero. * Returns zero if this `Float` value is `NaN`, [Int.MIN_VALUE] if it's less than `Int.MIN_VALUE`, * [Int.MAX_VALUE] if it's bigger than `Int.MAX_VALUE`. */ @@ -1582,7 +1582,7 @@ public final class Float private constructor() : Number(), Comparable { /** * Converts this [Float] value to [Long]. * - * The fractional part, if any, is rounded down. + * The fractional part, if any, is rounded down towards zero. * Returns zero if this `Float` value is `NaN`, [Long.MIN_VALUE] if it's less than `Long.MIN_VALUE`, * [Long.MAX_VALUE] if it's bigger than `Long.MAX_VALUE`. */ @@ -1883,7 +1883,7 @@ public final class Double private constructor() : Number(), Comparable { /** * Converts this [Double] value to [Int]. * - * The fractional part, if any, is rounded down. + * The fractional part, if any, is rounded down towards zero. * Returns zero if this `Double` value is `NaN`, [Int.MIN_VALUE] if it's less than `Int.MIN_VALUE`, * [Int.MAX_VALUE] if it's bigger than `Int.MAX_VALUE`. */ @@ -1892,7 +1892,7 @@ public final class Double private constructor() : Number(), Comparable { /** * Converts this [Double] value to [Long]. * - * The fractional part, if any, is rounded down. + * The fractional part, if any, is rounded down towards zero. * Returns zero if this `Double` value is `NaN`, [Long.MIN_VALUE] if it's less than `Long.MIN_VALUE`, * [Long.MAX_VALUE] if it's bigger than `Long.MAX_VALUE`. */