diff --git a/include/utils/utils.php b/include/utils/utils.php
index a287450ff2a9b1481f977c465a601b53321cd260..336ad1ef09dbca3e3cfb0583007ced050ffeec3c 100755
--- a/include/utils/utils.php
+++ b/include/utils/utils.php
@@ -2023,7 +2023,7 @@ function getCurrencyDecimalPlaces($user = null) {
     } else if ($current_user) {
         $currency_decimal_places = $current_user->no_of_currency_decimals;
     }
-    return $currency_decimal_places;
+    return (int)$currency_decimal_places;
 }
 
 function getInventoryModules() {