diff --git a/app/src/main/java/com/duy/ncalc/unitconverter/utils/BitrateStrategy.java b/app/src/main/java/com/duy/ncalc/unitconverter/utils/BitrateStrategy.java index f4c9a620..7716ca34 100644 --- a/app/src/main/java/com/duy/ncalc/unitconverter/utils/BitrateStrategy.java +++ b/app/src/main/java/com/duy/ncalc/unitconverter/utils/BitrateStrategy.java @@ -95,13 +95,13 @@ public double Convert(String from, String to, double input) { } if ((from.equals(context.getResources().getString(R.string.bitrateunitbytes))) && (to.equals(context.getResources().getString(R.string.bitrateunitgigabits)))) { - double ret = input * 8 / BIT_RATE_1 / BIT_RATE_1; + double ret = input * 8 / BIT_RATE_1 / BIT_RATE_1 / BIT_RATE_1; return ret; } if ((from.equals(context.getResources().getString(R.string.bitrateunitbytes))) && (to.equals(context.getResources().getString(R.string.bitrateunitterabits)))) { - double ret = input * 8 / BIT_RATE_1 / BIT_RATE_1; + double ret = input * 8 / BIT_RATE_1 / BIT_RATE_1 / BIT_RATE_1 / BIT_RATE_1; return ret; }