action bar, percentage, minesweeper letter heads, points adjustable in config
This commit is contained in:
parent
7faa109453
commit
6c777a50e4
7 changed files with 123 additions and 49 deletions
|
|
@ -28,5 +28,11 @@ public class MinecleanerStringUtil {
|
|||
}
|
||||
return timeString.toString();
|
||||
}
|
||||
|
||||
|
||||
public static String percentageString(int whatPercentage, int fromPercentage) {
|
||||
float percent = (float) whatPercentage/fromPercentage;
|
||||
percent = percent * 100;
|
||||
String percentageString = String.format("%.1f", percent);
|
||||
return percentageString + "%";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue