Development

Changeset 11958

You must first sign up to be able to contribute.

Changeset 11958

Show
Ignore:
Timestamp:
10/05/08 18:51:39 (6 years ago)
Author:
fabien
Message:

[1.1, 1.2] fixed sfNumberFormat when handling large numbers (closes #4521)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/i18n/sfNumberFormat.class.php

    r9128 r11958  
    172172    if (is_int($decimalDigits) && $decimalDigits > 0) 
    173173    { 
    174       $string = (string) round(floatval($string), $decimalDigits); 
     174      $string = (string) intval(round(floatval($string), $decimalDigits)); 
    175175    } 
    176176 
  • branches/1.2/lib/i18n/sfNumberFormat.class.php

    r9128 r11958  
    172172    if (is_int($decimalDigits) && $decimalDigits > 0) 
    173173    { 
    174       $string = (string) round(floatval($string), $decimalDigits); 
     174      $string = (string) intval(round(floatval($string), $decimalDigits)); 
    175175    } 
    176176