Closed samyan closed 2 years ago
Solved setting the precision in this way
$p = BigDecimal::of(1.54);
$precision = 2;
print_r(BigDecimal::of(100)->dividedBy($p, $precision, RoundingMode::HALF_UP));
If there is no other ways to do, the we can close the issue.
Hi, indeed, the rounding mode is the 3rd parameter, the 2nd being the precision! :+1:
Hi. Why i get the error of the title.
Test case: