Lines Matching refs:nExp
55 static double getN10Exp( int nExp ) in getN10Exp() argument
57 if ( nExp < 0 ) in getN10Exp()
59 if ( -nExp <= n10Count ) in getN10Exp()
60 return n10s[1][-nExp-1]; in getN10Exp()
62 return pow( 10.0, static_cast<double>( nExp ) ); in getN10Exp()
64 else if ( nExp > 0 ) in getN10Exp()
66 if ( nExp <= n10Count ) in getN10Exp()
67 return n10s[0][nExp-1]; in getN10Exp()
69 return pow( 10.0, static_cast<double>( nExp ) ); in getN10Exp()
352 int nExp = 0; in doubleToString() local
355 nExp = static_cast< int >( floor( log10( fValue ) ) ); in doubleToString()
356 fValue /= getN10Exp( nExp ); in doubleToString()
364 if ( nExp <= -15 || nExp >= 15 ) // #58531# was <-16, >16 in doubleToString()
371 if ( nExp < 14 ) in doubleToString()
373 nPrec = 15 - nExp - 1; in doubleToString()
390 if ( nExp < -4 || nExp >= nDecPlaces ) in doubleToString()
397 nDecPlaces = std::max< sal_Int32 >( 0, nDecPlaces - nExp - 1 ); in doubleToString()
409 nDigits += nExp; in doubleToString()
417 nExp++; in doubleToString()
427 ( nDigits <= 0 ? std::max< sal_Int32 >( nDecPlaces, abs(nExp) ) in doubleToString()
447 if( nExp < 0 ) in doubleToString()
455 sal_Int32 i = ( nDigits <= 0 ? nDecPlaces : -nExp - 1 ); in doubleToString()
461 nDecPos = nExp + 1; in doubleToString()
512 nExp++; in doubleToString()
549 nExp++; in doubleToString()
620 if( nExp < 0 ) in doubleToString()
622 nExp = -nExp; in doubleToString()
629 nExp / 100 + static_cast< typename T::Char >('0') ); in doubleToString()
630 nExp %= 100; in doubleToString()
632 nExp / 10 + static_cast< typename T::Char >('0') ); in doubleToString()
634 nExp % 10 + static_cast< typename T::Char >('0') ); in doubleToString()
685 inline bool long10Overflow( long& nExp, int nAdd ) in long10Overflow() argument
687 if ( nExp > (LONG_MAX/10) in long10Overflow()
688 || (nExp == (LONG_MAX/10) && nAdd > (LONG_MAX%10)) ) in long10Overflow()
690 nExp = LONG_MAX; in long10Overflow()
834 long nExp = 0; in stringToDouble() local
841 if ( long10Overflow( nExp, i ) ) in stringToDouble()
844 nExp = nExp * 10 + i; in stringToDouble()
846 if ( nExp ) in stringToDouble()
849 nExp = -nExp; in stringToDouble()
850 long nAllExp = ( bOverFlow ? 0 : nExp + nValExp ); in stringToDouble()
862 else if ( nExp > DBL_MAX_10_EXP || nExp < DBL_MIN_10_EXP ) in stringToDouble()
868 fVal = rtl::math::pow10Exp( fVal, nExp ); // normal in stringToDouble()
984 int nExp; // exponent for correction in rtl_math_round() local
986 nExp = static_cast<int>( floor( log10( fValue ) ) ); in rtl_math_round()
988 nExp = 0; in rtl_math_round()
989 int nIndex = 15 - nExp; in rtl_math_round()
1068 double SAL_CALL rtl_math_pow10Exp(double fValue, int nExp) SAL_THROW_EXTERN_C() in rtl_math_pow10Exp() argument
1070 return fValue * getN10Exp( nExp ); in rtl_math_pow10Exp()
1086 int nExp = static_cast<int>( floor( log10( fValue))); in rtl_math_approxValue() local
1087 nExp = 14 - nExp; in rtl_math_approxValue()
1088 double fExpValue = getN10Exp( nExp); in rtl_math_approxValue()