---
title: EXC_ARITHMETIC
framework: xcode
role: article
role_heading: Article
path: xcode/exc_arithmetic
---

# EXC_ARITHMETIC

An arithmetic problem terminated the process, often because of division by zero or a floating-point error.

## Overview

Overview Depending on the language and CPU architecture, division by zero and floating-point errors can also produce other exceptions. For example, the Swift standard library’s numeric types detect division by zero and produce a fatal error (SIGTRAP or SIGILL). Because division by zero in C is undefined behavior, it might produce an incorrect result instead of an error.

## See Also

### Exceptions

- [EXC_BAD_ACCESS](xcode/exc_bad_access.md)
- [EXC_BAD_ACCESS (SIGBUS)](xcode/sigbus.md)
- [EXC_BAD_ACCESS (SIGSEGV)](xcode/sigsegv.md)
- [EXC_BREAKPOINT (SIGTRAP) and EXC_BAD_INSTRUCTION (SIGILL)](xcode/sigtrap_sigill.md)
- [EXC_CRASH](xcode/exc_crash.md)
- [EXC_CRASH (SIGABRT)](xcode/sigabrt.md)
- [EXC_CRASH (SIGKILL)](xcode/sigkill.md)
- [EXC_CRASH (SIGQUIT)](xcode/sigquit.md)
- [EXC_CRASH (SIGSYS)](xcode/sigsys.md)
- [EXC_CRASH (SIGTERM)](xcode/sigterm.md)
- [EXC_GUARD](xcode/exc_guard.md)
- [EXC_RESOURCE](xcode/exc_resource.md)
