Lines Matching refs:fValue

298                            double fValue, rtl_math_StringFormat eFormat,  in doubleToString()  argument
311 bool bSign = rtl::math::isSignBitSet( fValue ); in doubleToString()
313 fValue = -fValue; in doubleToString()
315 if ( rtl::math::isNan( fValue ) ) in doubleToString()
331 bool bHuge = fValue == HUGE_VAL; // g++ 3.0.1 requires it this way... in doubleToString()
332 if ( bHuge || rtl::math::isInf( fValue ) ) in doubleToString()
353 if ( fValue > 0.0 ) in doubleToString()
355 nExp = static_cast< int >( floor( log10( fValue ) ) ); in doubleToString()
356 fValue /= getN10Exp( nExp ); in doubleToString()
414 if( ( fValue += nRoundVal[ nDigits > 15 ? 15 : nDigits ] ) >= 10 ) in doubleToString()
416 fValue = 1.0; in doubleToString()
492 nDigit = static_cast< int >( floor( fValue in doubleToString()
495 nDigit = static_cast< int >( fValue + 1E-15 ); in doubleToString()
557 fValue = 0.0; in doubleToString()
563 fValue = ( fValue - nDigit ) * 10.0; in doubleToString()
651 sal_Int32 nResultOffset, double fValue, in rtl_math_doubleToString() argument
661 pResult, pResultCapacity, nResultOffset, fValue, eFormat, nDecPlaces, in rtl_math_doubleToString()
667 sal_Int32 nResultOffset, double fValue, in rtl_math_doubleToUString() argument
677 pResult, pResultCapacity, nResultOffset, fValue, eFormat, nDecPlaces, in rtl_math_doubleToUString()
953 double SAL_CALL rtl_math_round(double fValue, int nDecPlaces, in rtl_math_round() argument
959 if ( fValue == 0.0 ) in rtl_math_round()
960 return fValue; in rtl_math_round()
963 bool bSign = rtl::math::isSignBitSet( fValue ); in rtl_math_round()
965 fValue = -fValue; in rtl_math_round()
972 if ( nDecPlaces < -20 || 20 < nDecPlaces || fValue > (DBL_MAX / 1e20) ) in rtl_math_round()
973 return bSign ? -fValue : fValue; in rtl_math_round()
976 fValue *= fFac; in rtl_math_round()
985 if ( fValue > 0.0 ) in rtl_math_round()
986 nExp = static_cast<int>( floor( log10( fValue ) ) ); in rtl_math_round()
994 fValue = floor( fValue + 0.5 + nKorrVal[nIndex] ); in rtl_math_round()
998 fValue = rtl::math::approxFloor( fValue ); in rtl_math_round()
1001 fValue = rtl::math::approxCeil( fValue ); in rtl_math_round()
1004 fValue = bSign ? rtl::math::approxCeil( fValue ) in rtl_math_round()
1005 : rtl::math::approxFloor( fValue ); in rtl_math_round()
1008 fValue = bSign ? rtl::math::approxFloor( fValue ) in rtl_math_round()
1009 : rtl::math::approxCeil( fValue ); in rtl_math_round()
1013 double f = floor( fValue ); in rtl_math_round()
1014 fValue = ((fValue - f) <= 0.5) ? f : ceil( fValue ); in rtl_math_round()
1019 double f = floor( fValue ); in rtl_math_round()
1020 fValue = ((fValue - f) < 0.5) ? f : ceil( fValue ); in rtl_math_round()
1040 volatile double x = fValue + 1.0 / DBL_EPSILON; in rtl_math_round()
1041 fValue = x - 1.0 / DBL_EPSILON; in rtl_math_round()
1046 double f = floor( fValue ); in rtl_math_round()
1047 if ( (fValue - f) != 0.5 ) in rtl_math_round()
1048 fValue = floor( fValue + 0.5 ); in rtl_math_round()
1052 fValue = (g == floor( g )) ? f : (f + 1.0); in rtl_math_round()
1062 fValue /= fFac; in rtl_math_round()
1064 return bSign ? -fValue : fValue; 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()
1074 double SAL_CALL rtl_math_approxValue( double fValue ) SAL_THROW_EXTERN_C() in rtl_math_approxValue() argument
1076 if (fValue == 0.0 || fValue == HUGE_VAL || !::rtl::math::isFinite( fValue)) in rtl_math_approxValue()
1078 return fValue; in rtl_math_approxValue()
1080 double fOrigValue = fValue; in rtl_math_approxValue()
1082 bool bSign = ::rtl::math::isSignBitSet( fValue); in rtl_math_approxValue()
1084 fValue = -fValue; in rtl_math_approxValue()
1086 int nExp = static_cast<int>( floor( log10( fValue))); in rtl_math_approxValue()
1090 fValue *= fExpValue; in rtl_math_approxValue()
1093 if (!rtl::math::isFinite( fValue)) in rtl_math_approxValue()
1095 fValue = rtl_math_round( fValue, 0, rtl_math_RoundingMode_Corrected); in rtl_math_approxValue()
1096 fValue /= fExpValue; in rtl_math_approxValue()
1099 if (!rtl::math::isFinite( fValue)) in rtl_math_approxValue()
1102 return bSign ? -fValue : fValue; in rtl_math_approxValue()
1106 double SAL_CALL rtl_math_expm1( double fValue ) SAL_THROW_EXTERN_C() in rtl_math_expm1() argument
1108 double fe = exp( fValue ); in rtl_math_expm1()
1110 return fValue; in rtl_math_expm1()
1113 return (fe-1.0) * fValue / log(fe); in rtl_math_expm1()
1116 double SAL_CALL rtl_math_powr( double fValue, double fExp ) SAL_THROW_EXTERN_C() in rtl_math_powr() argument
1118 if ((fValue == 0.0 && fExp == 0.0) || in rtl_math_powr()
1120 (rtl::math::isInf( fValue ) && !rtl::math::isSignBitSet( fValue ))) in rtl_math_powr()
1126 return pow(fValue, fExp); in rtl_math_powr()
1130 double SAL_CALL rtl_math_log1p( double fValue ) SAL_THROW_EXTERN_C() in rtl_math_log1p() argument
1137 volatile double fp = 1.0 + fValue; in rtl_math_log1p()
1139 return fValue; in rtl_math_log1p()
1141 return log(fp) * fValue / (fp-1.0); in rtl_math_log1p()
1145 double SAL_CALL rtl_math_atanh( double fValue ) SAL_THROW_EXTERN_C() in rtl_math_atanh() argument
1147 return 0.5 * rtl_math_log1p( 2.0 * fValue / (1.0-fValue) ); in rtl_math_atanh()