22 references to IsPositive
System.Data (22)
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (1)
1200
targetBuffer.SetToDecimal( dec.Precision, dec.Scale, dec.
IsPositive
, dec.Data );
fx\src\data\System\Data\SqlClient\TdsParser.cs (2)
6413
if (d.
IsPositive
)
6435
if (d.
IsPositive
)
fx\src\data\System\Data\SQLTypes\SQLDecimal.cs (15)
967
if (
IsPositive
) {
1127
return
IsPositive
? dRet : - dRet;
1137
return new Decimal((int)m_data1, (int)m_data2, (int)m_data3, !
IsPositive
, m_bScale);
1179
s.SetSignBit(!s.
IsPositive
);
1213
fMySignPos = x.
IsPositive
;
1214
fOpSignPos = y.
IsPositive
;
1439
fResPositive = (x.
IsPositive
== y.
IsPositive
);//positive if both signs same.
1642
fResSignPos = (x.
IsPositive
== y.
IsPositive
);//sign of result
2700
Sign1 =
IsPositive
? 1 : -1;
2701
Sign2 = snumOp.
IsPositive
? 1 : -1;
2997
if (fFraction && n.
IsPositive
) {
3026
if (fFraction && !n.
IsPositive
) {
3050
(n.
IsPositive
? new SqlInt32(1) : new SqlInt32(-1));
fx\src\data\System\Data\SQLTypes\SQLInt32.cs (1)
336
if (!x.
IsPositive
)
fx\src\data\System\Data\SQLTypes\SQLInt64.cs (2)
385
if (dwl > SqlDecimal.x_llMax && (ssnumTemp.
IsPositive
|| dwl != 1 + SqlDecimal.x_llMax))
394
if (!ssnumTemp.
IsPositive
)
fx\src\data\System\Data\SQLTypes\SQLMoney.cs (1)
113
bool fPositive = snum.
IsPositive
;