diff options
-rw-r--r-- | sal/rtl/math.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx index 9f25d653f3f1..8435715a1afc 100644 --- a/sal/rtl/math.cxx +++ b/sal/rtl/math.cxx @@ -75,7 +75,7 @@ static double getN10Exp(int nExp) namespace { -double const nKorrVal[] = { +double const nCorrVal[] = { 0, 9e-1, 9e-2, 9e-3, 9e-4, 9e-5, 9e-6, 9e-7, 9e-8, 9e-9, 9e-10, 9e-11, 9e-12, 9e-13, 9e-14, 9e-15 }; @@ -539,7 +539,7 @@ inline void doubleToString(typename T::String ** pResult, { int nDigit; if (nDigits-1 == 0 && i > 0 && i < 14) - nDigit = static_cast< int >(floor( fValue + nKorrVal[15-i])); + nDigit = static_cast< int >(floor( fValue + nCorrVal[15-i])); else nDigit = static_cast< int >(fValue + 1E-15); @@ -1116,7 +1116,7 @@ double SAL_CALL rtl_math_round(double fValue, int nDecPlaces, else nIndex = 15 - nExp; - fValue = floor(fValue + 0.5 + nKorrVal[nIndex]); + fValue = floor(fValue + 0.5 + nCorrVal[nIndex]); } break; case rtl_math_RoundingMode_Down: |