Update BinaryFractionCalc.java

Added a bug fix so that the calculator can appropriately deal with zero. Also consolidated the rounding implementation into one function.