b3ta.com board
You are not logged in. Login or Signup
Home » Messageboard » Message 8532458 (Thread)

# there's no harm in writing your own library that does a manual test
kind of:
int funkydiv (int a, int b) {
if(b == 0) return MAX; else return a/b;
}

so long as you make sure it's distinguished from the built-in int type. also, i don't know what c's like for overloading operators, but it'd be a piece of piss to overload the division operator in c++
(, Sun 6 Jul 2008, 13:22, archived)
# Fair point.
(, Sun 6 Jul 2008, 13:27, archived)
# i write infrastructure for dsp engineers sometimes
they can be fussy about their maths
(, Sun 6 Jul 2008, 13:38, archived)