floating point exception? what causes these?

This is a discussion on floating point exception? what causes these? within the C++ Programming forums, part of the General Programming Boards category; You don't necessarily have to declare a floating point variable. int 3 divided by int 4 will result in a ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    559
    You don't necessarily have to declare a floating point variable. int 3 divided by int 4 will result in a float, for example.
    Truth is a malleable commodity - Dick Cheney

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    244

    floating point exception? what causes these?

    My chess program I'm working on crashes after a few turns and gives the message "floating point exception" (I'm in linux).

    What the hell is a floating point exception? what causes them?

    Thanks!

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    244
    Hmm well I found it odd since I don't use a single floating point variable in my entire program... But i did find a section where it would be possible to accidentally divide by 0. So I fixed that and the error SEEMS to have stopped.
    Hmmm...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Decimal places on Floating point number
    By manutdfan in forum C Programming
    Replies: 1
    Last Post: 10-29-2006, 12:56 PM
  2. How accurate is the following...
    By emeyer in forum C Programming
    Replies: 22
    Last Post: 12-07-2005, 12:07 PM
  3. floating point question
    By Eric Cheong in forum C Programming
    Replies: 8
    Last Post: 09-10-2004, 11:48 PM
  4. 2 questions about floating point and %
    By ams80 in forum C Programming
    Replies: 2
    Last Post: 08-14-2002, 11:55 AM
  5. Replies: 2
    Last Post: 09-10-2001, 01:00 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21