3 implementations of Precision
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal128.cs (1)
1799static int IDecimalIeee754ParseAndFormatInfo<Decimal128, UInt128>.Precision => Precision;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal32.cs (1)
1744static int IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.Precision => Precision;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal64.cs (1)
1737static int IDecimalIeee754ParseAndFormatInfo<Decimal64, ulong>.Precision => Precision;
52 references to Precision
System.Private.CoreLib (52)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (45)
29if (digits < TDecimal.Precision) 31int numberZeroDigits = TDecimal.Precision - digits; 193if (diffExponent < TDecimal.Precision) 296if (diffExponent >= TDecimal.Precision) 390if (numberDigitsRemain > TDecimal.Precision) 397numberDigitsRemain = TDecimal.Precision; 408if (number.DigitsCount > TDecimal.Precision) 410int numberDigitsRemove = number.DigitsCount - TDecimal.Precision; 415return DecimalIeee754Rounding<TDecimal, TValue>(ref number, TDecimal.Precision); 430if (numberDigits + numberZeroDigits > TDecimal.Precision) 543if (payload >= TDecimal.Power10(TDecimal.Precision - 1)) 554TValue scale = TDecimal.Power10(TDecimal.Precision - 1); 620TValue significand = (TValue.CreateTruncating(msd) * TDecimal.Power10(TDecimal.Precision - 1)) + UnpackDeclets(dpdBits & payloadMask, declets); 771Debug.Assert(digitsRemain <= TDecimal.Precision); 819significand = TDecimal.Power10(TDecimal.Precision - 1); 855if (payload >= TDecimal.Power10(TDecimal.Precision - 1)) 951int pad = Math.Min(nonZero.UnbiasedExponent - zeroExponent, TDecimal.Precision - nonZeroDigits); 975int guard = TDecimal.Precision + 2; 1086&& (TDecimal.CountDigits(magnitudeLow) <= TDecimal.Precision)) 1225int precision = TDecimal.Precision; 1350int pad = Math.Min(addendExponent - productExponent, TDecimal.Precision - addendDigits); 1379int retain = (2 * TDecimal.Precision) + 2; 1540int shift = divisorDigits - dividendDigits + TDecimal.Precision + 1; 1570if (k > TDecimal.Precision - 1) 1572k = TDecimal.Precision - 1; 1692while ((chunk < TDecimal.Precision - 1) && (TDecimal.Power10(chunk + 1) <= chunkLimit)) 1709if (TDecimal.CountDigits(b.Significand) + gap > TDecimal.Precision) 1803while ((chunk < TDecimal.Precision - 1) && (TDecimal.Power10(chunk + 1) <= chunkLimit)) 1825if (TDecimal.CountDigits(b.Significand) + gap > TDecimal.Precision + 1) 1910int guard = TDecimal.Precision + 1 - ((TDecimal.CountDigits(coefficient) + 1) / 2); 2087if (surplus <= TDecimal.Precision - TDecimal.CountDigits(a.Significand)) 2193if (coefficientDigits + shift > TDecimal.Precision) 2351int padding = Math.Min(TDecimal.Precision - TDecimal.CountDigits(significand), exponent - TDecimal.MinAdjustedExponent); 2366significand = TDecimal.Power10(TDecimal.Precision - 1); 2375if ((significand == (TDecimal.Power10(TDecimal.Precision - 1) - TValue.One)) && (exponent != TDecimal.MinAdjustedExponent)) 2409int highestTableExponent = TDecimal.Precision - 1; 2509int highestTableExponent = TDecimal.Precision - 1; 2802if (TValue.IsZero(high) && (dropCount < TDecimal.Precision)) 2903int precision = TDecimal.Precision; 3000significand = TDecimal.Power10(TDecimal.Precision - 1); 3072if (dropCount >= TDecimal.Precision) 3819Dragon4<TFloat>(value, cutoffNumber: TDecimal.Precision, isSignificantDigits: true, ref number, out bool isExact); 3829if ((number.Scale - TDecimal.Precision) >= TDecimal.MinAdjustedExponent) 3831if (!isExact && (number.DigitsCount < TDecimal.Precision)) 3833int end = TDecimal.Precision;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128Conversions.cs (2)
52int maxChunk = TDecimal.Precision - 1; 108int precision = TDecimal.Precision;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.Transcendental.cs (3)
269if (k > TDecimal.Precision - 1) 569if (k >= TDecimal.Precision) 610if (k >= TDecimal.Precision)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (2)
143static virtual int MaxAdjustedExponent => TSelf.MaxExponent - TSelf.Precision + 1; 144static virtual int MinAdjustedExponent => TSelf.MinExponent - TSelf.Precision + 1;