Skip to content
Discussion options

You must be logged in to vote

You can add precision($precision = 0, $mode = PHP_ROUND_HALF_UP) to configure how rounding work with the results.

return $this->precision(2)
           ->sumByDays(
               $request,
               Deposit::class,
               'amount'
           )
           ->format('0.000')
           ->showSumValue();

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ranierif
Comment options

Answer selected by crynobone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4259 on May 17, 2022 02:41.