Modified code: http://pastebin.com/mvPR2snF
(Note: some changes are purely for preventing the optimizer from removing entire sections.)
I think you still have a number of issues in your code that skew the result.
One thing is that you do an float->int conversion for each int operation, this will likely slow down the int operations more then they should.
The other is that you use base 10 for the precision, you should use base 2, and then a lot of muls and divs will become shifts.
The old code had these issues, I believe you're quoting the wrong person.