Divide operator
John Abshier
Posts: 1,116
I unintentionally divided an integer by zero in Spin and learned the following: x/0 returns 0.· I am undecided if this is a bug or feature.· Other options would be to·abort (If you don't guard for division by zero you shall be punished.) or POSX, NEGX depending on the sign of x.
John Abshier
John Abshier
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I should be typing in Spin now.
Coming soon. My open Propeller Project Pages and favorite links index.
John Abshier
It might be nice to provide for a user defined exception handler.· This would be useful for floating point exceptions and asserts.