20#include <config_features.h>
38 nRes =
p->nChar;
break;
40 nRes =
p->nByte;
break;
43 nRes =
p->nInteger;
break;
46 nRes =
p->nUShort;
break;
48 nRes =
p->nLong;
break;
50 nRes =
p->nULong;
break;
52 nRes =
p->nSingle;
break;
55 nRes =
p->nDouble;
break;
59 nRes =
static_cast< double >(
p->nInt64);
break;
64 if (!
p->pDecimal || !
p->pDecimal->getDouble(nRes))
73#if HAVE_FEATURE_SCRIPTING
85#if HAVE_FEATURE_SCRIPTING
107 nRes = *
p->pChar;
break;
109 nRes = *
p->pByte;
break;
112 nRes = *
p->pInteger;
break;
114 nRes = *
p->pLong;
break;
116 nRes = *
p->pULong;
break;
119 nRes = *
p->pUShort;
break;
121 nRes = *
p->pSingle;
break;
124 nRes = *
p->pDouble;
break;
128 nRes =
static_cast< double >(*
p->pnInt64);
break;
146 aTmp.
pChar = &
p->nChar;
goto direct;
148 aTmp.
pByte = &
p->nByte;
goto direct;
151 aTmp.
pInteger = &
p->nInteger;
goto direct;
153 aTmp.
pLong = &
p->nLong;
goto direct;
155 aTmp.
pULong = &
p->nULong;
goto direct;
158 aTmp.
pUShort = &
p->nUShort;
goto direct;
160 aTmp.
pSingle = &
p->nSingle;
goto direct;
192 p->nDouble =
n;
break;
198 p->pOUString =
new OUString;
242 *
p->pSingle =
static_cast<float>(
n);
break;
249 *
p->pDouble =
n;
break;
static bool isVBAEnabled()
static void SetError(ErrCode)
bool setDouble(double val)
bool LibreOffice6FloatingPointMode()
#define ERRCODE_BASIC_NO_OBJECT
#define ERRCODE_BASIC_MATH_OVERFLOW
#define ERRCODE_BASIC_CONVERSION
double ImpCurrencyToDouble(const sal_Int64 r)
auto ImpDoubleToChar(double f)
auto ImpDoubleToInteger(double f)
auto ImpDoubleToSalUInt64(double d)
auto ImpDoubleToLong(double f)
auto ImpDoubleToUShort(double f)
auto ImpDoubleToULong(double f)
double ImpSalUInt64ToDouble(sal_uInt64 n)
ErrCode ImpScan(const OUString &rSrc, double &nVal, SbxDataType &rType, sal_uInt16 *pLen, bool bOnlyIntntl)
sal_Int64 ImpDoubleToCurrency(double d)
auto ImpDoubleToSalInt64(double d)
SbxDecimal * ImpCreateDecimal(SbxValues *p)
auto ImpDoubleToByte(double f)
void ImpCvtNum(double nNum, short nPrec, OUString &rRes, bool bCoreString=false)
void ImpPutDouble(SbxValues *p, double n, bool bCoreString)
double ImpGetDouble(const SbxValues *p)
constexpr auto SbxMINSNG2
constexpr auto SbxMAXSNG2
constexpr auto SbxMINCURR
constexpr auto SbxMAXCURR