Development

Changeset 11958

You must first sign up to be able to contribute.

Changeset 11958

Show
Ignore:
Timestamp:
10/05/08 18:51:39 (1 year 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 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.