26 writes to IsNegative
System.Private.CoreLib (26)
src\runtime\src\libraries\Common\src\System\Number.Formatting.Common.cs (2)
619number.IsNegative = false; 1388number.IsNegative = false;
src\runtime\src\libraries\Common\src\System\Number.NumberBuffer.cs (1)
43IsNegative = false;
src\runtime\src\libraries\Common\src\System\Number.Parsing.Common.cs (4)
70if (((styles & NumberStyles.AllowLeadingSign) != 0) && (state & StateSign) == 0 && (((nextIndex = MatchChars(value, index, info.PositiveSignTChar<TChar>())) >= 0) || (((nextIndex = MatchNegativeSignChars(value, index, info)) >= 0) && (number.IsNegative = true)))) 78number.IsNegative = true; 267if ((styles & NumberStyles.AllowTrailingSign) != 0 && ((state & StateSign) == 0) && (((nextIndex = MatchChars(value, index, info.PositiveSignTChar<TChar>())) >= 0) || ((((nextIndex = MatchNegativeSignChars(value, index, info)) >= 0)) && (number.IsNegative = true)))) 304number.IsNegative = false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Number.cs (1)
42number.IsNegative = true;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (5)
3646number.IsNegative = sign; 3779number.IsNegative = decoded.Signed; 3820number.IsNegative = isNegative; 3849number.IsNegative = isNegative; 3905number.IsNegative = decoded.Signed;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (12)
535number.IsNegative = unpackDecimal.Signed; 566number.IsNegative = decimal.IsNegative(d); 999number.IsNegative = TNumber.IsNegative(value); 1750number.IsNegative = false; 1754number.IsNegative = true; 1940number.IsNegative = false; 2065number.IsNegative = false; 2069number.IsNegative = true; 2262number.IsNegative = false; 2459number.IsNegative = false; 2463number.IsNegative = true; 2649number.IsNegative = false;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Rounding.cs (1)
393number.IsNegative = isNegative;
34 references to IsNegative
System.Private.CoreLib (34)
src\runtime\src\libraries\Common\src\System\Number.Formatting.Common.cs (11)
358if (number.IsNegative) 394if (number.IsNegative) 432if (number.IsNegative) 495section = FindSection(format, number.Digits[0] == 0 ? 2 : number.IsNegative ? 1 : 0); 706if (number.IsNegative && (section == 0) && (number.Scale != 0) && !HasNegativeSection(format)) 948if (number.IsNegative && (section == 0) && (number.Scale == 0) && (vlb.Length > 0) && !HasNegativeSection(format)) 959number.IsNegative, 960number.IsNegative ? info.CurrencyNegativePattern : info.CurrencyPositivePattern); 1175ReadOnlySpan<byte> fmt = GetNumberFormat(number.IsNegative, info.NumberNegativePattern); 1321number.IsNegative, 1322number.IsNegative ? info.PercentNegativePattern : info.PercentPositivePattern);
src\runtime\src\libraries\Common\src\System\Number.NumberBuffer.cs (1)
106sb.Append(", IsNegative = ").Append(IsNegative);
src\runtime\src\libraries\Common\src\System\Number.Parsing.Common.cs (1)
32Debug.Assert(!number.IsNegative);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Number.cs (1)
20Debug.Assert(!number.IsNegative);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (15)
357return DecimalIeee754FiniteNumberBinaryEncoding<TDecimal, TValue>(number.IsNegative, TValue.Zero, number.Scale); 370return number.IsNegative ? TDecimal.NegativeInfinity : TDecimal.PositiveInfinity; 384return DecimalIeee754FiniteNumberBinaryEncoding<TDecimal, TValue>(number.IsNegative, TValue.Zero, TDecimal.MinAdjustedExponent); 413return number.IsNegative ? TDecimal.NegativeInfinity : TDecimal.PositiveInfinity; 420return DecimalIeee754FiniteNumberBinaryEncoding<TDecimal, TValue>(number.IsNegative, significand, exponent); 432return number.IsNegative ? TDecimal.NegativeInfinity : TDecimal.PositiveInfinity; 448return DecimalIeee754FiniteNumberBinaryEncoding<TDecimal, TValue>(number.IsNegative, significand, TDecimal.MaxAdjustedExponent); 737return DecimalIeee754FiniteNumberBinaryEncoding<TDecimal, TValue>(coefficient.IsNegative, TValue.Zero, TDecimal.MinAdjustedExponent); 741return DecimalIeee754FiniteNumberBinaryEncoding<TDecimal, TValue>(coefficient.IsNegative, TValue.One, TDecimal.MinAdjustedExponent); 746? DecimalIeee754FiniteNumberBinaryEncoding<TDecimal, TValue>(coefficient.IsNegative, TValue.One, TDecimal.MinAdjustedExponent) 747: DecimalIeee754FiniteNumberBinaryEncoding<TDecimal, TValue>(coefficient.IsNegative, TValue.Zero, TDecimal.MinAdjustedExponent); 807return DecimalIeee754FiniteNumberBinaryEncoding<TDecimal, TValue>(number.IsNegative, significand, exponent); 816return number.IsNegative ? TDecimal.NegativeInfinity : TDecimal.PositiveInfinity; 820return DecimalIeee754FiniteNumberBinaryEncoding<TDecimal, TValue>(number.IsNegative, significand, exponent); 825return DecimalIeee754FiniteNumberBinaryEncoding<TDecimal, TValue>(number.IsNegative, significand, exponent);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (1)
412if (number.IsNegative)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (4)
196if ((i > TInteger.MaxDigitCount) || (i < number.DigitsCount) || (!TInteger.IsSigned && number.IsNegative) || number.HasNonZeroTail) 233if (number.IsNegative) 850bool sign = number.IsNegative; 1761return number.IsNegative ? -result : result;