Slashdot Mirror


User: brian6504

brian6504's activity in the archive.

Stories
0
Comments
1
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 1

  1. PowerPC Did This on Ask Slashdot: What's the Harm In a Default Setting For Div By Zero? · · Score: 1

    Those of us who wrote for PowerPC may recall the architecture returned 0 for integer division by 0. It's been done before and, in my opinion, was a good trade off between mathematical purity and pragmatism. The vast majority of the code I write follows the pattern result = (denominator != 0) ? (numerator / denominator) : 0.