3 implementations of CountDigits
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal128.cs (1)
1797
static int IDecimalIeee754ParseAndFormatInfo<Decimal128, UInt128>.
CountDigits
(UInt128 significand) => FormattingHelpers.CountDigits(significand);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal32.cs (1)
1769
static int IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.
CountDigits
(uint significand) => FormattingHelpers.CountDigits(significand);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal64.cs (1)
1763
static int IDecimalIeee754ParseAndFormatInfo<Decimal64, ulong>.
CountDigits
(ulong significand) => FormattingHelpers.CountDigits(significand);
22 references to CountDigits
System.Private.CoreLib (22)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (22)
28
int digits = TDecimal.
CountDigits
(decoded.Significand);
950
int nonZeroDigits = TDecimal.
CountDigits
(nonZero.Significand);
1003
if (droppedDigits >= TDecimal.
CountDigits
(lo.Significand))
1086
&& (TDecimal.
CountDigits
(magnitudeLow) <= TDecimal.Precision))
1349
int addendDigits = TDecimal.
CountDigits
(addendSignificand);
1370
int addendDigitsCount = addendZero ? 0 : TDecimal.
CountDigits
(addendSignificand);
1535
int dividendDigits = TDecimal.
CountDigits
(a.Significand);
1536
int divisorDigits = TDecimal.
CountDigits
(b.Significand);
1709
if (TDecimal.
CountDigits
(b.Significand) + gap > TDecimal.Precision)
1825
if (TDecimal.
CountDigits
(b.Significand) + gap > TDecimal.Precision + 1)
1910
int guard = TDecimal.Precision + 1 - ((TDecimal.
CountDigits
(coefficient) + 1) / 2);
1965
int coefficientDigits = TValue.IsZero(a.Significand) ? 0 : TDecimal.
CountDigits
(a.Significand);
2042
return a.UnbiasedExponent + TDecimal.
CountDigits
(a.Significand) - 1;
2087
if (surplus <= TDecimal.Precision - TDecimal.
CountDigits
(a.Significand))
2100
int coefficientDigits = TDecimal.
CountDigits
(a.Significand);
2185
int coefficientDigits = TDecimal.
CountDigits
(a.Significand);
2351
int padding = Math.Min(TDecimal.Precision - TDecimal.
CountDigits
(significand), exponent - TDecimal.MinAdjustedExponent);
2709
return TDecimal.
CountDigits
(low);
2738
return count + TDecimal.
CountDigits
(low);
3184
int adjustedExponent = decoded.UnbiasedExponent + TDecimal.
CountDigits
(decoded.Significand) - 1;
3208
int adjustedExponent = decoded.UnbiasedExponent + TDecimal.
CountDigits
(decoded.Significand) - 1;
3745
int scale = TDecimal.
CountDigits
(decoded.Significand) + exponent;