15 writes to _bScale
System.Data.Common (15)
System\Data\SQLTypes\SQLDecimal.cs (15)
472
_bScale
= 0;
517
_bScale
= (byte)((int)(sgnscl & 0xff0000) >> 16);
551
_bScale
= 0;
579
_bScale
= 0;
592
_bScale
= bScale;
628
_bScale
= bScale;
751
_bScale
= (byte)(ulLen < s_DBL_DIG ? s_DBL_DIG - ulLen : 0);
790
_bScale
= bScale;
1011
snResult.
_bScale
= 0;
1100
snResult.
_bScale
= 0;
1105
snResult.
_bScale
= (byte)(snResult._bPrec - lDecPnt);
2301
_bScale
= bNewScale;
2341
_bScale
= bNewScale;
3070
_bScale
= 0;
3364
_bScale
= dec._bScale;
43 references to _bScale
System.Data.Common (43)
System\Data\SQLTypes\SQLDecimal.cs (42)
414
precision = Math.Max(precision,
_bScale
);
752
_bPrec = (byte)(ulLen +
_bScale
);
755
if (
_bScale
> 0)
757
ulLen =
_bScale
;
860
return
_bScale
;
952
while (iDigits <=
_bScale
)
963
if (
_bScale
> 0)
981
if (iDigits-- ==
_bScale
)
1138
dRet /= System.Math.Pow(10.0,
_bScale
);
1148
if ((int)_data4 != 0 ||
_bScale
> 28)
1153
return new decimal((int)_data1, (int)_data2, (int)_data3, !IsPositive,
_bScale
);
1247
MyScale = x.
_bScale
;
1248
OpScale = y.
_bScale
;
1446
ActualScale = x.
_bScale
+ y.
_bScale
;
1448
ResInteger = (x._bPrec - x.
_bScale
) + (y._bPrec - y.
_bScale
) + 1;
1686
bScaleD = x.
_bScale
;
1688
ResScale = Math.Max(x.
_bScale
+ y._bPrec + 1, s_cNumeDivScaleMin);
1689
ResInteger = x._bPrec - x.
_bScale
+ y.
_bScale
;
1704
lScaleAdjust = ResScale - x.
_bScale
+ y.
_bScale
;
1809
Debug.Assert(
_bScale
<= s_NUMERIC_MAX_PRECISION, "m_bScale <= NUMERIC_MAX_PRECISION", "In AssertValid");
1810
Debug.Assert(
_bScale
<= _bPrec, "m_bScale <= m_bPrec", "In AssertValid");
1811
Debug.Assert(
_bScale
>= 0, "m_bScale >= 0", "In AssertValid");
2101
return (Prec <
_bScale
?
_bScale
: (byte)Prec);
2289
if (lAdjust +
_bScale
< 0)
2293
if (lAdjust +
_bScale
> s_NUMERIC_MAX_PRECISION)
2296
bNewScale = (byte)(lAdjust +
_bScale
);
2380
int lScaleAdjust = scale - ret.
_bScale
; //Adjustment to scale
2803
ScaleDiff =
_bScale
- snumOp.
_bScale
;
3048
int iAdjust =
_bScale
;
3097
if (n.
_bScale
== 0)
3125
if (n.
_bScale
== 0)
3169
if (lPosition >= n.
_bScale
)
3178
if (lPosition < n.
_bScale
- n._bPrec)
3186
int lAdjust = Math.Abs(lPosition - n.
_bScale
); // Precision adjustment
3225
lAdjust = Math.Abs(lPosition - n.
_bScale
);
3364
_bScale = dec.
_bScale
;
System\Data\SQLTypes\SQLInt64.cs (1)
305
ssnumTemp.AdjustScale(-ssnumTemp.
_bScale
, false);