Kaydet (Commit) e6c9bdfd authored tarafından Eike Rathke's avatar Eike Rathke

use getN10Exp(x) instead of pow(10.0,x)

Change-Id: Ib7e49126cbffc510fa941c25a8d57222bad51c46
üst 5299400e
...@@ -228,7 +228,7 @@ inline void doubleToString(StringT ** pResult, ...@@ -228,7 +228,7 @@ inline void doubleToString(StringT ** pResult,
// Round before decimal position. // Round before decimal position.
if (nDecPlaces < 0) if (nDecPlaces < 0)
{ {
sal_Int64 nRounding = static_cast<sal_Int64>( pow( 10.0, static_cast<double>( -nDecPlaces - 1))); sal_Int64 nRounding = static_cast<sal_Int64>( getN10Exp( -nDecPlaces - 1));
sal_Int64 nTemp = nInt / nRounding; sal_Int64 nTemp = nInt / nRounding;
int nDigit = nTemp % 10; int nDigit = nTemp % 10;
nTemp /= 10; nTemp /= 10;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment