Skip to content

Commit

Permalink
Update basic-types.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gluxix committed Oct 13, 2017
1 parent 19ed946 commit 8e43aac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions basic-types.md
Expand Up @@ -90,10 +90,10 @@ val b: Byte = 1 // порядок, литералы проверяются ст
val i: Int = b // ОШИБКА
```

Мы можем использовать явное преобразование для "сужения" чисел
Мы можем использовать явное преобразование для "расширения" чисел

``` kotlin
val i: Int = b.toInt() // порядок: число явно сужено
val i: Int = b.toInt() // порядок: число явно расширено
```

Каждый численный тип поддерживает следующие преобразования:
Expand Down

0 comments on commit 8e43aac

Please sign in to comment.