27#include <rtl/math.hxx>
42 nRes =
p->nChar;
break;
44 nRes =
p->nByte;
break;
47 nRes =
p->nInteger;
break;
50 nRes =
p->nUShort;
break;
52 nRes =
p->nLong;
break;
59 nRes =
static_cast<sal_Int32
>(
p->nULong);
73 nRes =
static_cast<sal_Int32
>(tstVal);
89 p->pDecimal->getDouble( dVal );
125 nRes = *
p->pChar;
break;
127 nRes = *
p->pByte;
break;
130 nRes = *
p->pInteger;
break;
132 nRes = *
p->pLong;
break;
136 aTmp.
nULong = *
p->pULong;
goto ref;
139 aTmp.
nUShort = *
p->pUShort;
goto ref;
141 aTmp.
nSingle = *
p->pSingle;
goto ref;
144 aTmp.
nDouble = *
p->pDouble;
goto ref;
147 aTmp.
nInt64 = *
p->pnInt64;
goto ref;
149 aTmp.
uInt64 = *
p->puInt64;
goto ref;
170 aTmp.
pChar = &
p->nChar;
goto direct;
172 aTmp.
pByte = &
p->nByte;
goto direct;
175 aTmp.
pInteger = &
p->nInteger;
goto direct;
177 aTmp.
pULong = &
p->nULong;
goto direct;
179 aTmp.
puInt64 = &
p->uInt64;
goto direct;
191 p->nSingle =
static_cast<float>(
n);
break;
194 p->nDouble =
n;
break;
198 p->nInt64 =
n;
break;
208 p->pOUString =
new OUString;
209 ImpCvtNum(
static_cast<double>(
n), 0, *
p->pOUString );
250 *
p->pInteger =
static_cast<sal_Int16
>(
n);
break;
261 *
p->pUShort =
static_cast<sal_uInt16
>(
n);
break;
263 *
p->pLong =
n;
break;
269 *
p->pULong =
static_cast<sal_uInt32
>(
n);
break;
271 *
p->pnInt64 =
n;
break;
281 *
p->pSingle =
static_cast<float>(
n);
break;
284 *
p->pDouble =
static_cast<double>(
n);
break;
static void SetError(ErrCode)
void setLong(sal_Int32 val)
sal_Int32 GetLong() const
bool LibreOffice6FloatingPointMode()
#define ERRCODE_BASIC_NO_OBJECT
#define ERRCODE_BASIC_MATH_OVERFLOW
#define ERRCODE_BASIC_CONVERSION
auto ImpDoubleToLong(double f)
ErrCode ImpScan(const OUString &rSrc, double &nVal, SbxDataType &rType, sal_uInt16 *pLen, bool bOnlyIntntl)
SbxDecimal * ImpCreateDecimal(SbxValues *p)
void ImpCvtNum(double nNum, short nPrec, OUString &rRes, bool bCoreString=false)
constexpr sal_Int32 SbxMINLNG
constexpr auto SbxMAXCHAR
constexpr sal_uInt16 SbxMAXUINT
constexpr auto SbxMINCHAR
constexpr auto CURRENCY_FACTOR
constexpr auto SbxMAXBYTE
void ImpPutLong(SbxValues *p, sal_Int32 n)
sal_Int32 ImpGetLong(const SbxValues *p)