From e6c9bdfdc181c95d5757b96b6194d639a0df3c79 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Thu, 14 Jan 2016 20:48:44 +0100 Subject: use getN10Exp(x) instead of pow(10.0,x) Change-Id: Ib7e49126cbffc510fa941c25a8d57222bad51c46 --- sal/rtl/math.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sal') 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( pow( 10.0, static_cast( -nDecPlaces - 1))); + sal_Int64 nRounding = static_cast( getN10Exp( -nDecPlaces - 1)); sal_Int64 nTemp = nInt / nRounding; int nDigit = nTemp % 10; nTemp /= 10; -- cgit