You don't necessarily have to declare a floating point variable. int 3 divided by int 4 will result in a float, for example.
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
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!
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...