diff --git a/src/BaseDraw.php b/src/BaseDraw.php
index <HASH>..<HASH> 100644
--- a/src/BaseDraw.php
+++ b/src/BaseDraw.php
@@ -295,7 +295,7 @@ abstract class BaseDraw
      */
     public function convertAlpha($AlphaValue)
     {
-        return round((127 / 100) * (100 - $AlphaValue));
+        return floor((127 / 100) * (100 - $AlphaValue));
     }
 
     /**
@@ -516,7 +516,7 @@ abstract class BaseDraw
             $Factor = $Factor * 10;
         }
 
-        return round($Value1 * $Factor) % round($Value2 * $Factor);
+        return floor($Value1 * $Factor) % floor($Value2 * $Factor);
     }
 
     /**
use floor instead of round to get the same results as before