|
|
|
@ -301,7 +301,11 @@ public abstract class Reader{ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return Double.parseDouble(Integer.toString(numb)+"."+Integer.toString(decimal)); |
|
|
|
|
try { |
|
|
|
|
return Double.parseDouble(Integer.toString(numb)+"."+Integer.toString(decimal)); |
|
|
|
|
} catch (NumberFormatException e) { |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
int convertToInt(String[]data){return convertToInt("",data);} |
|
|
|
@ -438,7 +442,7 @@ public abstract class Reader{ |
|
|
|
|
if (this.other.length()>0 && other.other.length()>0 && !this.other.equals(other.other)) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
if (Double.doubleToLongBits(pct) != Double.doubleToLongBits(other.pct)) { |
|
|
|
|
if (Double.compare(pct,other.pct)!=0) { |
|
|
|
|
System.out.println("Doubles don't match!"); |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|