Browse Source

Update bcradialprogressbar.pas

Rounding percentages
Андрей 1 year ago
parent
commit
791bdbbb34
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bcradialprogressbar.pas

+ 1 - 1
bcradialprogressbar.pas

@@ -282,7 +282,7 @@ begin
   if MaxValue = 0 then
     textStr := '0%'
   else
-    textStr := FloatToStr((Value / MaxValue) * 100) + '%';
+    textStr := FloatToStr(Round((Value / MaxValue) * 100)) + '%';
 
   if DrawText then
   begin