Skip to content

Commit

Permalink
Conform with intl extension's number output
Browse files Browse the repository at this point in the history
  • Loading branch information
bcosca authored and nanawel committed Sep 15, 2018
1 parent 0261432 commit 71d3799
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion base.php
Original file line number Diff line number Diff line change
Expand Up @@ -964,8 +964,12 @@ function_exists('money_format'))
$args[$pos]*100,0,$decimal_point,
$thousands_sep).'%';
}
$frac=$args[$pos]-(int)$args[$pos];
return number_format(
$args[$pos],isset($prop)?$prop:2,
$args[$pos],
isset($prop)?
$prop:
$frac?strlen($frac)-2:0,
$decimal_point,$thousands_sep);
case 'date':
if (empty($mod) || $mod=='short')
Expand Down

0 comments on commit 71d3799

Please sign in to comment.