Re: bad floating point exception

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

 



On Fri, 27 Jul 2007 15:41:32 -0700, Gordon Messmer wrote:

> 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."

Looking at your reference, I see that someone knows the
differences among different kinds of errors, and I get the
feeling that something can be done about it.

Mike.


-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux