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