Progress Bar Component to not show 2 decimals percent
This commit is contained in:
@@ -72,8 +72,8 @@ public class ProgressBarComponent
|
||||
|
||||
if (Strings.isNullOrEmpty(text))
|
||||
{
|
||||
DecimalFormat df = new DecimalFormat("#.00");
|
||||
textToWrite = df.format(progress) + "%";
|
||||
DecimalFormat df = new DecimalFormat("#0");
|
||||
textToWrite = df.format(Math.floor(progress)) + "%";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user