Progress Bar Component to not show 2 decimals percent

This commit is contained in:
noremac201
2018-01-21 16:08:26 -06:00
parent 7d5e0ff389
commit e1ac8f0521

View File

@@ -72,8 +72,8 @@ public class ProgressBarComponent
if (Strings.isNullOrEmpty(text)) if (Strings.isNullOrEmpty(text))
{ {
DecimalFormat df = new DecimalFormat("#.00"); DecimalFormat df = new DecimalFormat("#0");
textToWrite = df.format(progress) + "%"; textToWrite = df.format(Math.floor(progress)) + "%";
} }
else else
{ {