Home
last modified time | relevance | path

Searched refs:fVal (Results 1 – 25 of 128) sorted by relevance

123456

/AOO41X/main/sc/source/core/tool/
H A Dscmatrix.cxx53 pMat[0].fVal = CreateDoubleError( errStackOverflow); in CreateMatrix()
126 double fVal; in ScMatrix() local
137 rStream >> pMat[i].fVal; in ScMatrix()
139 rStream >> fVal; in ScMatrix()
183 double fVal; in Store() local
184 ::rtl::math::setNan( &fVal ); in Store()
185 rStream << fVal; in Store()
214 rStream << pMat[i].fVal; in Store()
254 void ScMatrix::PutDouble(double fVal, SCSIZE nC, SCSIZE nR) in PutDouble() argument
257 PutDouble( fVal, CalcOffset( nC, nR) ); in PutDouble()
[all …]
H A Dinterpr1.cxx130 double fVal; in ScIfJump() local
138 fVal = pMatVal->fVal; in ScIfJump()
139 bIsValue = ::rtl::math::isFinite( fVal ); in ScIfJump()
140 bTrue = bIsValue && (fVal != 0.0); in ScIfJump()
142 fVal = 1.0; in ScIfJump()
150 fVal = (bIsValue ? 0.0 : CreateDoubleError( errNoValue)); in ScIfJump()
156 pJumpMat->SetJump( nC, nR, fVal, in ScIfJump()
162 pJumpMat->SetJump( nC, nR, fVal, in ScIfJump()
171 pJumpMat->SetJump( nC, nR, fVal, in ScIfJump()
178 pJumpMat->SetJump( nC, nR, fVal, in ScIfJump()
[all …]
H A Dinterpr3.cxx1144 double fVal = GetDouble(); in ScFisher() local
1145 if (fabs(fVal) >= 1.0) in ScFisher()
1148 PushDouble( ::boost::math::atanh( fVal)); in ScFisher()
1715 double fVal = fBase - i; in lcl_PutFactorialElements() local
1716 if ( fVal > 1.0 ) in lcl_PutFactorialElements()
1717 cn.push_back( fVal ); in lcl_PutFactorialElements()
2050 double fVal = lcl_IterateInverse( aFunc, fStart*0.5, fStart, bConvError ); in ScGammaInv() local
2053 PushDouble(fVal); in ScGammaInv()
2099 double fVal = lcl_IterateInverse( aFunc, 0.0, 1.0, bConvError ); in ScBetaInv() local
2103 PushDouble(fA + fVal*(fB-fA)); // scale to (A,B) in ScBetaInv()
[all …]
H A Dinterpr2.cxx185 double fVal; in ScGetDateValue() local
186 if (pFormatter->IsNumberFormat(aInputString, nFIndex, fVal)) in ScGetDateValue()
190 PushDouble(::rtl::math::approxFloor(fVal)); in ScGetDateValue()
416 double fVal; in ScGetTimeValue() local
417 if (pFormatter->IsNumberFormat(aInputString, nFIndex, fVal)) in ScGetTimeValue()
422 double fDateVal = rtl::math::approxFloor(fVal); in ScGetTimeValue()
423 double fTimeVal = fVal - fDateVal; in ScGetTimeValue()
464 double fVal = 0.0; in RoundNumber() local
466 fVal = ::rtl::math::round( GetDouble(), 0, eMode ); in RoundNumber()
473 fVal = ::rtl::math::round( GetDouble(), (short)nDec, eMode ); in RoundNumber()
[all …]
H A Dinterpr5.cxx393 double fVal = GetCellValue( aAdr, pCell); in CreateMatrixFromDoubleRef() local
396 fVal = CreateDoubleError( nGlobalError); in CreateMatrixFromDoubleRef()
399 pMat->PutDouble( fVal, in CreateMatrixFromDoubleRef()
409 double fVal = CreateDoubleError( nGlobalError); in CreateMatrixFromDoubleRef() local
411 pMat->PutDouble( fVal, in CreateMatrixFromDoubleRef()
491 double fVal = GetDouble(); in GetMatrix() local
497 fVal = CreateDoubleError( nGlobalError); in GetMatrix()
500 pMat->PutDouble( fVal, 0); in GetMatrix()
512 double fVal = CreateDoubleError( nGlobalError); in GetMatrix() local
513 pMat->PutDouble( fVal, 0); in GetMatrix()
[all …]
H A Drangeseq.cxx60 long lcl_DoubleToLong( double fVal ) in lcl_DoubleToLong() argument
62 double fInt = (fVal >= 0.0) ? ::rtl::math::approxFloor( fVal ) : in lcl_DoubleToLong()
63 ::rtl::math::approxCeil( fVal ); in lcl_DoubleToLong()
240 double fVal = pMatrix->GetDouble( nCol, nRow ); in FillStringArray() local
242 pFormatter->GetOutputString( fVal, 0, aStr, &pColor ); in FillStringArray()
344 double fVal = pMatrix->GetDouble( nCol, nRow ); in FillMixedArray() local
346 pColAry[nCol] <<= (fVal ? true : false); in FillMixedArray()
348 pColAry[nCol] <<= fVal; in FillMixedArray()
431 double fVal; in CreateMixedMatrix() local
433 if (ScApiTypeConversion::ConvertAnyToDouble( fVal, eClass, pColArr[nCol])) in CreateMixedMatrix()
[all …]
H A Dconsoli.cxx458 double fVal = 0.0; in lcl_CalcData() local
463 fVal = fCount; in lcl_CalcData()
469 fVal = fSum; in lcl_CalcData()
473 fVal = fSum / fCount; in lcl_CalcData()
480 fVal = sqrt((fSumSqr - fSum/fCount)/(fCount-1.0)); in lcl_CalcData()
488 fVal = sqrt((fSumSqr - fSum/fCount)/fCount); in lcl_CalcData()
496 fVal = (fSumSqr - fSum/fCount)/(fCount-1.0); in lcl_CalcData()
504 fVal = (fSumSqr - fSum/fCount)/fCount; in lcl_CalcData()
516 return fVal; in lcl_CalcData()
725 double fVal = lcl_CalcData( eFunction, ppCount[nArrX][nArrY], in OutputToDocument() local
[all …]
H A Dinterpr4.cxx185 double fVal = pCell->GetValue(); in GetValueCellValue() local
186 if ( bCalcAsShown && fVal != 0.0 ) in GetValueCellValue()
189 fVal = pDok->RoundValueAsShown( fVal, nFormat ); in GetValueCellValue()
191 return fVal; in GetValueCellValue()
507 double fVal = pFCell->GetValue(); in GetCellString() local
511 pFormatter->GetInputLineString(fVal, nIndex, rStr); in GetCellString()
519 double fVal = ((ScValueCell*) pCell)->GetValue(); in GetCellString() local
523 pFormatter->GetInputLineString(fVal, nIndex, rStr); in GetCellString()
988 double fVal = GetCellValue( rAddress, pCell); in PushCellResultToken() local
989 PushDouble( fVal); in PushCellResultToken()
[all …]
/AOO41X/main/basegfx/inc/basegfx/numeric/
H A Dftools.hxx63 inline sal_Int32 fround( double fVal ) in fround() argument
65 … return fVal > 0.0 ? static_cast<sal_Int32>( fVal + .5 ) : -static_cast<sal_Int32>( -fVal + .5 ); in fround()
72 inline sal_Int64 fround64( double fVal ) in fround64() argument
74 … return fVal > 0.0 ? static_cast<sal_Int64>( fVal + .5 ) : -static_cast<sal_Int64>( -fVal + .5 ); in fround64()
89 inline double pruneScaleValue( double fVal ) in pruneScaleValue() argument
100 if(fVal < 0.0) in pruneScaleValue()
101 return (fVal < -0.00001 ? fVal : -0.00001); in pruneScaleValue()
103 return (fVal > 0.00001 ? fVal : 0.00001); in pruneScaleValue()
/AOO41X/main/sal/rtl/source/
H A Dmath.cxx76 void lcl_Erf0065( double x, double& fVal ) in lcl_Erf0065() argument
101 fVal = x * fPSum / fQSum; in lcl_Erf0065()
105 void lcl_Erfc0600( double x, double& fVal ) in lcl_Erfc0600() argument
165 fVal = exp( -1.0*x*x )* fPSum / fQSum; in lcl_Erfc0600()
170 void lcl_Erfc2654( double x, double& fVal ) in lcl_Erfc2654() argument
197 fVal = exp(-1.0*x*x)*fPSum / (x*fQSum); in lcl_Erfc2654()
709 double fVal = 0.0; in stringToDouble() local
737 rtl::math::setNan( &fVal ); in stringToDouble()
744 fVal = HUGE_VAL; in stringToDouble()
764 fVal = fVal * 10.0 + static_cast< double >( c - CharT('0') ); in stringToDouble()
[all …]
/AOO41X/main/stoc/source/typeconv/
H A Dconvert.cxx273 double fVal; in getHyperValue() local
274 if (getNumericValue( fVal, rStr ) && in getHyperValue()
275 fVal >= (double)SAL_INT64_MIN && in getHyperValue()
276 fVal <= DOUBLE_SAL_UINT64_MAX) in getHyperValue()
278 rnVal = (sal_Int64)round( fVal ); in getHyperValue()
406 double fVal = round( *(float *)rAny.getValue() ); in toHyper() local
407 nRet = (fVal > SAL_INT64_MAX ? (sal_Int64)(sal_uInt64)fVal : (sal_Int64)fVal); in toHyper()
408 if (fVal >= min && fVal <= unsigned_int64_to_double( max )) in toHyper()
418 double fVal = round( *(double *)rAny.getValue() ); in toHyper() local
419 nRet = (fVal > SAL_INT64_MAX ? (sal_Int64)(sal_uInt64)fVal : (sal_Int64)fVal); in toHyper()
[all …]
/AOO41X/main/sc/source/filter/excel/
H A Dexcrecds.cxx556 fVal( 0.0 ), in ExcFilterCondition()
576 fVal = fV; in SetCondition()
588 rStrm << fVal; in Save()
595 … rStrm << (sal_uInt8)0 << (sal_uInt8)((fVal != 0) ? 1 : 0) << (sal_uInt32)0 << (sal_uInt16)0; in Save()
617 static OString lcl_GetValue( sal_uInt8 nType, double fVal, XclExpString* pStr ) in lcl_GetValue() argument
622 case EXC_AFTYPE_DOUBLE: return OString::valueOf( fVal ); in lcl_GetValue()
623 case EXC_AFTYPE_BOOLERR: return OString::valueOf( (sal_Int32) ( fVal != 0 ? 1 : 0 ) ); in lcl_GetValue()
635 XML_val, lcl_GetValue( nType, fVal, pText ).getStr(), in SaveXml()
660 double fVal, String* pText, sal_Bool bSimple ) in AddCondition() argument
672 aCond[ nInd ].SetCondition( nType, nOp, fVal, pText ); in AddCondition()
[all …]
H A Dxltools.cxx117 double fVal; in GetDoubleFromRK() member
120 fVal = 0.0; in GetDoubleFromRK()
126 fVal = nTemp; in GetDoubleFromRK()
134 fVal /= 100.0; in GetDoubleFromRK()
136 return fVal; in GetDoubleFromRK()
260 double fVal; in ErrorToDouble() member
263 ::rtl::math::setNan( &fVal ); in ErrorToDouble()
265 return fVal; in ErrorToDouble()
/AOO41X/main/scaddins/source/analysis/
H A Dfinancial.cxx58 double fVal = aAnyConv.getDouble( xOpt, rVal, 1000.0 ); in getAccrint() local
60 if( fRate <= 0.0 || fVal <= 0.0 || CHK_Freq || nIssue >= nSettle ) in getAccrint()
63 …double fRet = fVal * fRate * GetYearDiff( GetNullDate( xOpt ), nIssue, nSettle, getDateMode( xOpt,… in getAccrint()
71 double fVal = aAnyConv.getDouble( xOpt, rVal, 1000.0 ); in getAccrintm() local
73 if( fRate <= 0.0 || fVal <= 0.0 || nIssue >= nSettle ) in getAccrintm()
76 …double fRet = fVal * fRate * GetYearDiff( GetNullDate( xOpt ), nIssue, nSettle, getDateMode( xOpt,… in getAccrintm()
126 double SAL_CALL AnalysisAddIn::getCumprinc( double fRate, sal_Int32 nNumPeriods, double fVal, in getCumprinc() argument
132 fVal <= 0.0 || ( nPayType != 0 && nPayType != 1 ) ) in getCumprinc()
135 fRmz = GetRmz( fRate, nNumPeriods, fVal, 0.0, nPayType ); in getCumprinc()
145 fKapZ = fRmz + fVal * fRate; in getCumprinc()
[all …]
H A Danalysis.cxx966 double fVal = ConvertToDec( aNum, 2, SCA_MAXPLACES ); in getBin2Oct() local
969 return ConvertFromDec( fVal, SCA_MIN8, SCA_MAX8, 8, nPlaces, SCA_MAXPLACES, bUsePlaces ); in getBin2Oct()
982 double fVal = ConvertToDec( aNum, 2, SCA_MAXPLACES ); in getBin2Hex() local
985 return ConvertFromDec( fVal, SCA_MIN16, SCA_MAX16, 16, nPlaces, SCA_MAXPLACES, bUsePlaces ); in getBin2Hex()
991 double fVal = ConvertToDec( aNum, 8, SCA_MAXPLACES ); in getOct2Bin() local
994 return ConvertFromDec( fVal, SCA_MIN2, SCA_MAX2, 2, nPlaces, SCA_MAXPLACES, bUsePlaces ); in getOct2Bin()
1007 double fVal = ConvertToDec( aNum, 8, SCA_MAXPLACES ); in getOct2Hex() local
1010 return ConvertFromDec( fVal, SCA_MIN16, SCA_MAX16, 16, nPlaces, SCA_MAXPLACES, bUsePlaces ); in getOct2Hex()
1040 double fVal = ConvertToDec( aNum, 16, SCA_MAXPLACES ); in getHex2Bin() local
1043 return ConvertFromDec( fVal, SCA_MIN2, SCA_MAX2, 2, nPlaces, SCA_MAXPLACES, bUsePlaces ); in getHex2Bin()
[all …]
/AOO41X/main/svx/source/items/
H A Dchrtitem.cxx258 fVal(fValue) in SvxDoubleItem()
267 rIn >> fVal; in SvxDoubleItem()
274 fVal(rItem.fVal) in SvxDoubleItem()
282 rtl::OString aOStr( rtl::math::doubleToString( fVal, rtl_math_StringFormat_E, 4, '.', false ) ); in GetValueText()
296 rText = ::rtl::math::doubleToUString( fVal, rtl_math_StringFormat_E, 4, in GetPresentation()
308 return (((SvxDoubleItem&)rItem).fVal == fVal); in operator ==()
331 rOut << fVal; in Store()
362 rVal <<= fVal; in QueryValue()
369 return rVal >>= fVal; in PutValue()
/AOO41X/main/sc/inc/
H A Dscmatrix.hxx47 double fVal; member
54 sal_uInt16 GetError() const { return GetDoubleErrorValue( fVal); } in GetError()
57 bool GetBoolean() const { return fVal != 0.; } in GetBoolean()
270 void PutDouble( double fVal, SCSIZE nC, SCSIZE nR);
271 void PutDouble( double fVal, SCSIZE nIndex) in PutDouble() argument
272 { pMat[nIndex].fVal = fVal; } in PutDouble()
287 void FillDouble( double fVal,
313 sal_uInt16 nError = GetDoubleErrorValue( pMat[nIndex].fVal); in GetDouble()
317 return pMat[nIndex].fVal; in GetDouble()
/AOO41X/main/formula/inc/formula/
H A Derrorcodes.hxx90 double fVal; in CreateDoubleError() member
93 ::rtl::math::setNan( &fVal ); in CreateDoubleError()
95 return fVal; in CreateDoubleError()
100 inline sal_uInt16 GetDoubleErrorValue( double fVal ) in GetDoubleErrorValue() argument
102 if ( ::rtl::math::isFinite( fVal ) ) in GetDoubleErrorValue()
104 if ( ::rtl::math::isInf( fVal ) ) in GetDoubleErrorValue()
107 &fVal)->nan_parts.fraction_lo; in GetDoubleErrorValue()
/AOO41X/main/chart2/source/controller/itemsetwrapper/
H A DTitleItemConverter.cxx199 double fVal = static_cast< double >( in ApplySpecialItem() local
207 ( bPropExisted && fOldVal != fVal )) in ApplySpecialItem()
209 GetPropertySet()->setPropertyValue( C2U( "TextRotation" ), uno::makeAny( fVal )); in ApplySpecialItem()
228 double fVal = 0; in FillSpecialItem() local
230 if( GetPropertySet()->getPropertyValue( C2U( "TextRotation" )) >>= fVal ) in FillSpecialItem()
233 ::rtl::math::round( fVal * 100.0 ) ) )); in FillSpecialItem()
/AOO41X/main/basegfx/source/vector/
H A Db2ivector.cxx98 double fVal(rVecA.getX() * rVecB.getY() - rVecA.getY() * rVecB.getX()); in areParallel() local
99 return ::basegfx::fTools::equalZero(fVal); in areParallel()
104 double fVal(rVecA.getX() * rVecB.getY() - rVecA.getY() * rVecB.getX()); in getOrientation() local
106 if(fVal > 0.0) in getOrientation()
111 if(fVal < 0.0) in getOrientation()
/AOO41X/main/framework/source/uielement/
H A Dprogressbarwrapper.cxx241 double fVal( 0 ); in setValue() local
244 fVal = ( double( nValue ) / double( m_nRange )) * 100; in setValue()
245 fVal = std::max( double( 0 ), std::min( fVal, double( 100 ))); in setValue()
248 if ( m_nValue != sal_Int32( fVal )) in setValue()
250 m_nValue = sal_Int32( fVal ); in setValue()
/AOO41X/main/sw/source/core/fields/
H A Dflddat.cxx85 double fVal; in Expand() local
90 fVal = GetDateTime(GetDoc(), aDateTime); in Expand()
93 fVal = GetValue(); in Expand()
96 fVal += (double)(nOffset * 60L) / 86400.0; in Expand()
98 return ExpandValue(fVal, GetFormat(), GetLanguage()); in Expand()
/AOO41X/main/vcl/source/window/
H A Dwindow2.cxx914 inline long WinFloatRound( double fVal ) in WinFloatRound() argument
916 return( fVal > 0.0 ? (long) ( fVal + 0.5 ) : -(long) ( -fVal + 0.5 ) ); in WinFloatRound()
1268 const double fVal = (double)nNewPos - ((double)nX * pHScrl->GetLineSize()); in ImplHandleScroll() local
1270 if ( fVal < LONG_MIN ) in ImplHandleScroll()
1272 else if ( fVal > LONG_MAX ) in ImplHandleScroll()
1275 nNewPos = (long)fVal; in ImplHandleScroll()
1291 const double fVal = (double)nNewPos - ((double)nY * pVScrl->GetLineSize()); in ImplHandleScroll() local
1293 if ( fVal < LONG_MIN ) in ImplHandleScroll()
1295 else if ( fVal > LONG_MAX ) in ImplHandleScroll()
1298 nNewPos = (long)fVal; in ImplHandleScroll()
/AOO41X/main/xmloff/source/draw/
H A Dxexptran.cxx288 ImpSdXMLExpTransObj2DRotate(double fVal) in ImpSdXMLExpTransObj2DRotate()
289 : ImpSdXMLExpTransObj2DBase(IMP_SDXMLEXP_TRANSOBJ2D_ROTATE), mfRotate(fVal) {} in ImpSdXMLExpTransObj2DRotate()
306 ImpSdXMLExpTransObj2DSkewX(double fVal) in ImpSdXMLExpTransObj2DSkewX()
307 : ImpSdXMLExpTransObj2DBase(IMP_SDXMLEXP_TRANSOBJ2D_SKEWX), mfSkewX(fVal) {} in ImpSdXMLExpTransObj2DSkewX()
312 ImpSdXMLExpTransObj2DSkewY(double fVal) in ImpSdXMLExpTransObj2DSkewY()
313 : ImpSdXMLExpTransObj2DBase(IMP_SDXMLEXP_TRANSOBJ2D_SKEWY), mfSkewY(fVal) {} in ImpSdXMLExpTransObj2DSkewY()
744 ImpSdXMLExpTransObj3DRotateX(double fVal) in ImpSdXMLExpTransObj3DRotateX()
745 : ImpSdXMLExpTransObj3DBase(IMP_SDXMLEXP_TRANSOBJ3D_ROTATE_X), mfRotateX(fVal) {} in ImpSdXMLExpTransObj3DRotateX()
750 ImpSdXMLExpTransObj3DRotateY(double fVal) in ImpSdXMLExpTransObj3DRotateY()
751 : ImpSdXMLExpTransObj3DBase(IMP_SDXMLEXP_TRANSOBJ3D_ROTATE_Y), mfRotateY(fVal) {} in ImpSdXMLExpTransObj3DRotateY()
[all …]
/AOO41X/main/sc/source/filter/dif/
H A Ddifexp.cxx113 double fVal; in ScExportDif() local
180 fVal = ( ( ScValueCell * ) pAkt )->GetValue(); in ScExportDif()
182 fVal, rtl_math_StringFormat_G, 14, '.', in ScExportDif()
208 fVal = ( ( ScFormulaCell * ) pAkt )->GetValue(); in ScExportDif()
210 fVal, rtl_math_StringFormat_G, 14, in ScExportDif()

123456