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 #100283: Ultra-Compatible WTFCalc 1.01

by Dark Shikari
Many platforms don't support floating point arithmetic. Some don't support integer arithmetic. Some don't support logical operations. Some might not even support bitshifts. The WTFCalc is here to solve this problem: it only uses five operations: &, ==, !=, =, and ~. All floating point operations are done using integer operations which are reimplemented using these operators which are... you get the idea! Much more information is available in the comments in CalcFunc.cpp.

Download0 Comments