Skip to content

Commit

Permalink
Fixed bug on fraction digit in the NumberFunction class
Browse files Browse the repository at this point in the history
  • Loading branch information
eureka2 committed Jun 21, 2019
1 parent 5bec32b commit 0f76267
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/G6K/Manager/ExpressionParser/NumberFunction.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ protected static function init() {
self::$groupingSize = $formatter->getAttribute(\NumberFormatter::GROUPING_SIZE);
}
if (self::$fractionDigit === null) {
self::$fractionDigit = $formatter->getAttribute(\NumberFormatter::FRACTION_DIGITS);
self::$fractionDigit = $formatter->getAttribute(\NumberFormatter::MAX_FRACTION_DIGITS);
}
} else {
if (self::$decimalPoint === null) {
Expand Down

0 comments on commit 0f76267

Please sign in to comment.