Re: bad floating point exception

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mike - EMAIL IGNORED wrote:

   unsigned    x = <seconds in the epoch>;
   unsigned    y = 0; // an error
   if (x % y == 0)
      ...

I got a floating point exception.  Peculiar?

No.

http://en.wikipedia.org/wiki/SIGFPE
"SIGFPE is the signal sent to computer programs that perform erroneous arithmetic operations on POSIX compliant platforms. ... Although SIGFPE does not necessarily involve floating-point arithmetic, there is no way to change its name without breaking backward compatibility."


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux