Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion modules/10-basics/35-math/ru/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ count /= 4 // count = 6
Конвертировать значения между числовыми типами можно, но с ограничениями:

```go
x := int64(5.99) // округляется вниз → 5
x := int64(5.99) // ошибка компиляции: constant 5.99 truncated to integer
x := int64(math.round(5.99)) -> 6
Copy link
Contributor

@fey fey Sep 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Привет, давай уберем эту строку и сделаем абзац ниже, Где будет про округление. Не забудь поправить имя функции и коммент с выводом. (обрати внимание, что стрелки не используем, можно там просто число в комменте наисать // 6 - так.

x := int64(5.05) // ошибка компиляции: constant 5.05 truncated to integer
x := uint(-5) // ошибка компиляции: constant -5 overflows uint
```
Expand Down