About The Contest

The first ever Olympiad of Misguided Geeks contest at Worse Than Failure (or OMGWTF for short) is a new kind of programming contest. Readers are invited to be creative with devising a calculator with the craziest code they can write. One lucky and potentially insane winner will get either a brand new MacBook Pro or comparable Sony VAIO laptop.



Entry #100163: Binary Mathness

by Steven Truelove
I decided that it would be best to use C++ STL strings containing the characters '0' and '1' for all computation. Floats are converted into twos complement integers, operated on, and then back. You just can't trust those damn built-in operators, am I right? So I built a binary adder, implemented binary long division with it, and then implement subtraction with the adder and multiplication with the divider.

Download0 Comments