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))
|
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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user