Division by zero - what happens
Moderators: David Barker, Jerry Messina
-
- Posts: 113
- Joined: Mon Jan 11, 2010 10:39 pm
- Location: Chesterfield
Division by zero - what happens
I can't spot anything in the help files on this, what is the result if you try and divide a float by zero in Swordfish? Does it just automatically set the result to the maximum value a float can hold, or could the result be undefined? I'm not sure if it is worth doing a separate test for when this can happen of if Swordfish deals with it automatically?
- David Barker
- Swordfish Developer
- Posts: 1214
- Joined: Tue Oct 03, 2006 7:01 pm
- Location: Saltburn by the Sea, UK
- Contact: