Skip to content

Conversation

RealVirg
Copy link

@RealVirg RealVirg commented Sep 5, 2025

5.99  тоже не конвертится так как потеря данных есть

5.99  тоже не конвертится так как потеря данных есть
```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 - так.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants