# «Overflow» (Решение)

## Ответ

```
Checked   Int32   increased max: OverflowException
Checked   Double  increased max: 1,79769313486232E+308
Checked   Decimal increased max: OverflowException
Unchecked Int32   increased max: -2147483607
Unchecked Double  increased max: 1,79769313486232E+308
Unchecked Decimal increased max: OverflowException
```

## Объяснение

Операции с переполнением `sbyte`, `byte`, `short`, `ushort`, `int`, `uint`, `long`, `ulong`, `char` выбрасывают исключение `OverflowException` в зависимости от `checked`/`unchecked`-контекста (ECMA-334, 11.1.5).

Операции с переполнением `float`, `double` не выбрасывают исключение `OverflowException` (ECMA-334, 11.1.6).

Операции с переполнением `decimal` всегда выбрасывают исключение `OverflowException` (ECMA-334, 11.1.7).

[Задача](/problembookdotnet/ru/math/overflow-p.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://andreyakinshin.gitbook.io/problembookdotnet/ru/math/overflow-s.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
