|
|
|
|
"tep_round doesn't work well with numbers that are in scientific notation (e.g., 4.988E+304), which might happen if someone orders an awful lot of something. Replace tep_round (in the catalog/includes/functions/general.php) with the following, and it will work better:
function tep_round($number, $precision) {
// if there's a decimal part to the number:
if(floor($number) != $number) {
// We're going to move the decimal point right by $precision digits,
$multBy = pow(10, $precision);
$number *= $multBy;
// truncate anything after the decimal place
$number = floor($number);
// then move the decimal place left by $precision digits
$number = $number / $multBy;
// This avoids converting the number into a string, and will
// work for
}
return $number;
}" |
|
|
|
 |
| For more information, visit the official osCommerce contribution webpage. |
 |
|
|