feature/cierres #25

Open
aldarien wants to merge 446 commits from feature/cierres into develop
403 changed files with 1209 additions and 18166 deletions
Showing only changes of commit 2bc30ab9e8 - Show all commits

View File

@ -21,9 +21,9 @@ class Format
{
return number_format($number, $decimal_places, ',', '.');
}
public function percent(float|string $number, int $decimal_places = 2): string
public function percent(float|string $number, int $decimal_places = 2, bool $multiply = false): string
{
return "{$this->number($number, $decimal_places)}%";
return "{$this->number(($multiply) ? $number * 100 : $number, $decimal_places)}%";
}
public function pesos(string $valor, int $decimal_places = 0): string
{