Changeset 11958
- Timestamp:
- 10/05/08 18:51:39 (5 years ago)
- Files:
-
- branches/1.1/lib/i18n/sfNumberFormat.class.php (modified) (1 diff)
- branches/1.2/lib/i18n/sfNumberFormat.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/i18n/sfNumberFormat.class.php
r9128 r11958 172 172 if (is_int($decimalDigits) && $decimalDigits > 0) 173 173 { 174 $string = (string) round(floatval($string), $decimalDigits);174 $string = (string) intval(round(floatval($string), $decimalDigits)); 175 175 } 176 176 branches/1.2/lib/i18n/sfNumberFormat.class.php
r9128 r11958 172 172 if (is_int($decimalDigits) && $decimalDigits > 0) 173 173 { 174 $string = (string) round(floatval($string), $decimalDigits);174 $string = (string) intval(round(floatval($string), $decimalDigits)); 175 175 } 176 176