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 #100119: The Decimal to Binary to Decimal Calculator

by David Bry
First converts your input to a float, to an integer, and to a string representing the binary equivalent. Reverses the string and performs the necessary calculations with the quickness (and lots of "trickery"). Reverses again and returns a string, that gets converted back to an integer (or a float in division) that is displayed back.

Download0 Comments