Skip to content

Commit

Permalink
Merge pull request #44 from kylekanderson/fix/explicit_int_conversion
Browse files Browse the repository at this point in the history
explicit float to int conversion
  • Loading branch information
bezhanSalleh committed Dec 30, 2023
2 parents 962fc7e + b0a90a1 commit 63bf2cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FilamentGoogleAnalytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function compute(): int
return 0;
}

return (($this->value - $this->previous) / $this->previous) * 100;
return (int) (($this->value - $this->previous) / $this->previous) * 100;
}

public function trajectoryValue()
Expand Down

0 comments on commit 63bf2cc

Please sign in to comment.