Update BinaryFractionCalc.java

Fixed issue with zero and consolidated rounding into one function.