public function __invoke($number, $precision = null, $locale = null)
 {
     $filter = new NumberFormat();
     $filter->setPrecision($precision);
     $filter->setLocale($locale);
     return $filter->filter($number);
 }
 public function extract($value, $options = null)
 {
     $op = ['locale' => 'pt_BR', 'number_format' => '#,##,##0.00'];
     if (!$options) {
         $op = $options;
     }
     $filter = new JSNumberFormat($op);
     return $filter->filter($value);
 }
 public function extract($value)
 {
     $filter = new JSNumberFormat(['locale' => 'pt_BR', 'number_format' => '#,##,##0']);
     return $filter->filter($value);
 }