diff --git a/includes/functions.php b/includes/functions.php index 464f218c55..76d67c6b6d 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -1039,7 +1039,7 @@ function hytera_h2f($number, $nd) } $tmppoint = array_reverse($tmppoint); - $tpointnumber = number_format($tmppoint[0] / 2, strlen($binpoint), '.', ''); + $tpointnumber = min(number_format($tmppoint[0] / 2, strlen($binpoint), '.', ''), 1); $pointnumber = ''; for ($i = 1; $i < strlen($binpoint); $i++) {