Lines Matching refs:nBase
563 double ConvertToDec( const STRING& aStr, sal_uInt16 nBase, sal_uInt16 nCharLim ) THROWDEF_RTE_IAE in ConvertToDec() argument
565 if ( nBase < 2 || nBase > 36 ) in ConvertToDec()
580 double fBase = nBase; in ConvertToDec()
593 n = nBase; in ConvertToDec()
595 if( n < nBase ) in ConvertToDec()
612 if( nStrLen == nCharLim && !bFirstDig && (nFirstDig >= nBase / 2) ) in ConvertToDec()
614 fVal = ( pow( double( nBase ), double( nCharLim ) ) - fVal ); // complement in ConvertToDec()
622 static inline sal_Char GetMaxChar( sal_uInt16 nBase ) in GetMaxChar() argument
625 return c[ nBase ]; in GetMaxChar()
629 STRING ConvertFromDec( double fNum, double fMin, double fMax, sal_uInt16 nBase, in ConvertFromDec() argument
642 nNum = sal_Int64( pow( double( nBase ), double( nMaxPlaces ) ) ) + nNum; in ConvertFromDec()
644 STRING aRet( STRING::valueOf( nNum, nBase ).toAsciiUpperCase() ); in ConvertFromDec()
658 memset( p, bNeg? GetMaxChar( nBase ) : '0', nLeft ); in ConvertFromDec()
893 double fRestVal, double fPer, double fRate, sal_Int32 nBase ) THROWDEF_RTE_IAE in GetAmordegrc() argument
895 if( nBase == 2 ) in GetAmordegrc()
912 …double fNRate = ::rtl::math::round( GetYearFrac( nNullDate, nDate, nFirstPer, nBase ) * fRate * f… in GetAmordegrc()
941 double fRestVal, double fPer, double fRate, sal_Int32 nBase ) THROWDEF_RTE_IAE in GetAmorlinc() argument
943 if( nBase == 2 ) in GetAmorlinc()
949 double f0Rate = GetYearFrac( nNullDate, nDate, nFirstPer, nBase ) * fRate * fCost; in GetAmorlinc()
964 double fYield, sal_Int32 nFreq, sal_Int32 nBase ) THROWDEF_RTE_IAE in GetDuration() argument
966 double fYearfrac = GetYearFrac( nNullDate, nSettle, nMat, nBase ); in GetDuration()
967 double fNumOfCoups = GetCoupnum( nNullDate, nSettle, nMat, nFreq, nBase ); in GetDuration()
997 double fRate, double fPrice, sal_Int32 nBase ) THROWDEF_RTE_IAE in GetYieldmat() argument
999 double fIssMat = GetYearFrac( nNullDate, nIssue, nMat, nBase ); in GetYieldmat()
1000 double fIssSet = GetYearFrac( nNullDate, nIssue, nSettle, nBase ); in GetYieldmat()
1001 double fSetMat = GetYearFrac( nNullDate, nSettle, nMat, nBase ); in GetYieldmat()
1086 double fRedemp, sal_Int32 nFreq, sal_Int32 nBase ) THROWDEF_RTE_IAE in getYield_() argument
1092 double fPrice1 = getPrice_( nNullDate, nSettle, nMat, fRate, fYield1, fRedemp, nFreq, nBase ); in getYield_()
1093 double fPrice2 = getPrice_( nNullDate, nSettle, nMat, fRate, fYield2, fRedemp, nFreq, nBase ); in getYield_()
1098 fPriceN = getPrice_( nNullDate, nSettle, nMat, fRate, fYieldN, fRedemp, nFreq, nBase ); in getYield_()
1109 fPrice2 = getPrice_( nNullDate, nSettle, nMat, fRate, fYield2, fRedemp, nFreq, nBase ); in getYield_()
1138 double fRedemp, sal_Int32 nFreq, sal_Int32 nBase ) THROWDEF_RTE_IAE in getPrice_() argument
1142 double fE = GetCoupdays( nNullDate, nSettle, nMat, nFreq, nBase ); in getPrice_()
1143 double fDSC_E = GetCoupdaysnc( nNullDate, nSettle, nMat, nFreq, nBase ) / fE; in getPrice_()
1144 double fN = GetCoupnum( nNullDate, nSettle, nMat, nFreq, nBase ); in getPrice_()
1145 double fA = GetCoupdaybs( nNullDate, nSettle, nMat, nFreq, nBase ); in getPrice_()
1219 double fRate, double fYield, double fRedemp, sal_Int32 nFreq, sal_Int32 nBase ) THROWDEF_RTE_IAE in GetOddlprice() argument
1222 double fDCi = GetYearFrac( nNullDate, nLastCoup, nMat, nBase ) * fFreq; in GetOddlprice()
1223 double fDSCi = GetYearFrac( nNullDate, nSettle, nMat, nBase ) * fFreq; in GetOddlprice()
1224 double fAi = GetYearFrac( nNullDate, nLastCoup, nSettle, nBase ) * fFreq; in GetOddlprice()
1235 double fRate, double fPrice, double fRedemp, sal_Int32 nFreq, sal_Int32 nBase ) THROWDEF_RTE_IAE in GetOddlyield() argument
1238 double fDCi = GetYearFrac( nNullDate, nLastCoup, nMat, nBase ) * fFreq; in GetOddlyield()
1239 double fDSCi = GetYearFrac( nNullDate, nSettle, nMat, nBase ) * fFreq; in GetOddlyield()
1240 double fAi = GetYearFrac( nNullDate, nLastCoup, nSettle, nBase ) * fFreq; in GetOddlyield()
1321 …Couppcd( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, sal_Int32 nBase ) in GetCouppcd() argument
1328 …lcl_GetCouppcd( aDate, ScaDate( nNullDate, nSettle, nBase ), ScaDate( nNullDate, nMat, nBase ), nF… in GetCouppcd()
1346 …Coupncd( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, sal_Int32 nBase ) in GetCoupncd() argument
1353 …lcl_GetCoupncd( aDate, ScaDate( nNullDate, nSettle, nBase ), ScaDate( nNullDate, nMat, nBase ), nF… in GetCoupncd()
1360 …updaybs( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, sal_Int32 nBase ) in GetCoupdaybs() argument
1366 ScaDate aSettle( nNullDate, nSettle, nBase ); in GetCoupdaybs()
1368 lcl_GetCouppcd( aDate, aSettle, ScaDate( nNullDate, nMat, nBase ), nFreq ); in GetCoupdaybs()
1375 …pdaysnc( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, sal_Int32 nBase ) in GetCoupdaysnc() argument
1381 if( (nBase != 0) && (nBase != 4) ) in GetCoupdaysnc()
1383 ScaDate aSettle( nNullDate, nSettle, nBase ); in GetCoupdaysnc()
1385 lcl_GetCoupncd( aDate, aSettle, ScaDate( nNullDate, nMat, nBase ), nFreq ); in GetCoupdaysnc()
1388 …etCoupdays( nNullDate, nSettle, nMat, nFreq, nBase ) - GetCoupdaybs( nNullDate, nSettle, nMat, nFr… in GetCoupdaysnc()
1394 …oupdays( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, sal_Int32 nBase ) in GetCoupdays() argument
1400 if( nBase == 1 ) in GetCoupdays()
1403 …lcl_GetCouppcd( aDate, ScaDate( nNullDate, nSettle, nBase ), ScaDate( nNullDate, nMat, nBase ), nF… in GetCoupdays()
1408 return static_cast< double >( GetDaysInYear( 0, 0, nBase ) ) / nFreq; in GetCoupdays()
1414 …Coupnum( sal_Int32 nNullDate, sal_Int32 nSettle, sal_Int32 nMat, sal_Int32 nFreq, sal_Int32 nBase ) in GetCoupnum() argument
1420 ScaDate aMat( nNullDate, nMat, nBase ); in GetCoupnum()
1422 lcl_GetCouppcd( aDate, ScaDate( nNullDate, nSettle, nBase ), aMat, nFreq ); in GetCoupnum()
2822 ScaDate::ScaDate( sal_Int32 nNullDate, sal_Int32 nDate, sal_Int32 nBase ) in ScaDate() argument
2825 bLastDayMode = (nBase != 5); in ScaDate()
2827 b30Days = (nBase == 0) || (nBase == 4); in ScaDate()
2828 bUSMode = (nBase == 0); in ScaDate()