View Issue Details

IDProjectCategoryView StatusLast Update
0003468OXID eShop (all versions)4.07. Source code, Testpublic2012-12-10 13:44
Reportertjungcl Assigned To 
Status resolvedResolutionfixed 
Product Version4.5.6 revision 40808 
Fixed in Version4.5.7 revision 41909 
Summary0003468: utils->fround function doesnt round correct
Descriptionin oxutils fround there is a workaround for the known php bug #36008.

however, the workaronud has a bug in it:
it _adds_ $dprez, even if $sVal is negative, making it worse when rounding negative numbers !!

To fix, replace last line with:
return round($sVal + $dprez * ($sVal>=0?1:-1), $iCurPrecision);
TagsNo tags attached.
PHP Versionany
Database Versionany


Linas Kukulskis

2012-01-04 14:47

reporter   ~0005578

added suggetion