Commits

Ahmed Youssef committed 63f8e8a

removeDuplication fix

Comments (0)

Files changed (1)

JPrayertimes/src/net/pf/jprayertimes/Prayertimes.java

     }
 
     protected double removeDuplication(double var) {
-        //Better implementation 
+        //Better implementation
+        /*
         if (var > 360) {
             var /= 360;
             var -= (int) (var);
             var *= 360;
-        }
-        return var;
+        }*/
+
+        return var%360;
     }
 
     public static String toHRTime(double var, boolean isAM) {