Skip to content

Commit 46fd35c

Browse files
committed
Fix type hinting
1 parent 8636470 commit 46fd35c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/i18n/sfNumberFormat.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ function format($number, $pattern = 'd', $currency = 'USD', $charset = null)
138138
ini_set('precision', $precision);
139139

140140
list($number, $decimal) = $this->formatDecimal($string);
141-
$integer = $this->formatInteger($this->fixFloat(abs($number)));
141+
$integer = $this->formatInteger($this->fixFloat(abs((float)$number)));
142142

143143
$result = (strlen($decimal) > 0) ? $integer.$decimal : $integer;
144144

0 commit comments

Comments
 (0)