<!--
{
  "documentType" : "article",
  "framework" : "Xcode",
  "identifier" : "/documentation/Xcode/EXC_ARITHMETIC",
  "metadataVersion" : "0.1.0",
  "role" : "article",
  "title" : "EXC_ARITHMETIC"
}
-->

# EXC_ARITHMETIC

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

## Discussion

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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)