fix rounded ujrah

This commit is contained in:
Hafifie PKB
2023-12-13 22:00:36 +08:00
parent dd6f97f34a
commit 97196445e6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ class Calculation
}
public function getRoundedMethod(float $number = 0.0) : Float{
$number_string = number_format($number,2);
$number_string = number_format(floor(($number*100))/100,2);
$rounded = substr($number_string, 0, -1);
$lastDigit = substr($number_string, -1);
+1 -1
View File
@@ -3,7 +3,7 @@
use App\Services\MasterServices;
use App\Support\v2\Calculation;
$number = 1456.50;
$number = 1456.529;
$test2 = new Calculation();
$test = new MasterServices('KB2');
// $response = $test->kiraUpahTawarruq('KB2231207-0004');