summaryrefslogtreecommitdiff
path: root/sal/rtl
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-01-14 20:48:44 +0100
committerEike Rathke <erack@redhat.com>2016-01-14 20:53:30 +0100
commite6c9bdfdc181c95d5757b96b6194d639a0df3c79 (patch)
tree75236dbea4f9ded918b3a84b015d81f367fb2987 /sal/rtl
parent5299400e5cce3060a0de85bb4dedd065b5ad1f41 (diff)
use getN10Exp(x) instead of pow(10.0,x)
Change-Id: Ib7e49126cbffc510fa941c25a8d57222bad51c46
Diffstat (limited to 'sal/rtl')
-rw-r--r--sal/rtl/math.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx
index e621c4807a92..f193eedd6aff 100644
--- a/sal/rtl/math.cxx
+++ b/sal/rtl/math.cxx
@@ -228,7 +228,7 @@ inline void doubleToString(StringT ** pResult,
// Round before decimal position.
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;
int nDigit = nTemp % 10;
nTemp /= 10;