Update BinaryFractionCalc.java

Consolidated rounding implementation into one function and made a function that fixes the bug with 0.