Division by zero
Division by zero
Posted Jan 4, 2025 19:15 UTC (Sat) by excors (subscriber, #95769)In reply to: Division by zero by khim
Parent article: Preventing data races with Pony
glibc says: (https://sourceware.org/glibc/manual/2.40/html_node/Progra...)
> The SIGFPE signal reports a fatal arithmetic error. Although the name is derived from “floating-point exception”, this signal actually covers all arithmetic errors, including division by zero and overflow.
(It notes the integer overflow exception is "impossible in a C program unless you enable overflow trapping in a hardware-specific fashion".)
