0.1.0
This commit is contained in:
14
common/Service/Format.php
Normal file
14
common/Service/Format.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
namespace Incoviba\API\Common\Service;
|
||||
|
||||
class Format
|
||||
{
|
||||
public function uf(float $number)
|
||||
{
|
||||
return number_format($number, 2, ',', '.');
|
||||
}
|
||||
public function pesos(float $number)
|
||||
{
|
||||
return number_format($number, 0, ',', '.');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user