System\Data\SQLTypes\SQLDecimal.cs (22)
41public static readonly byte MaxPrecision = s_NUMERIC_MAX_PRECISION; // max SS precision
42public static readonly byte MaxScale = s_NUMERIC_MAX_PRECISION; // max SS scale
683_bPrec = s_NUMERIC_MAX_PRECISION;
720Debug.Assert(ulLen <= s_NUMERIC_MAX_PRECISION, "ulLen <= NUMERIC_MAX_PRECISION", "");
932Span<char> pszTmp = stackalloc char[s_NUMERIC_MAX_PRECISION + 1]; //Local Character buffer to hold
1061if (cwchStr == 0 || cwchStr > s_NUMERIC_MAX_PRECISION + 1)
1109if (snResult._bPrec > s_NUMERIC_MAX_PRECISION)
1365if (ret.FGt10_38() || ret.CalculatePrecision() > s_NUMERIC_MAX_PRECISION)
1454if (ResPrec > s_NUMERIC_MAX_PRECISION)
1455ResPrec = s_NUMERIC_MAX_PRECISION;
1456if (ResScale > s_NUMERIC_MAX_PRECISION)
1457ResScale = s_NUMERIC_MAX_PRECISION;
1534Debug.Assert(s_NUMERIC_MAX_PRECISION == ResPrec);
1693ResInteger = Math.Min(ResInteger, s_NUMERIC_MAX_PRECISION);
1696if (ResPrec > s_NUMERIC_MAX_PRECISION)
1697ResPrec = s_NUMERIC_MAX_PRECISION;
1809Debug.Assert(_bScale <= s_NUMERIC_MAX_PRECISION, "m_bScale <= NUMERIC_MAX_PRECISION", "In AssertValid");
2293if (lAdjust + _bScale > s_NUMERIC_MAX_PRECISION)
2297bNewPrec = (byte)(Math.Min(s_NUMERIC_MAX_PRECISION, Math.Max(1, lAdjust + _bPrec)));
3168lPosition = Math.Min(s_NUMERIC_MAX_PRECISION, lPosition);
3175lPosition = Math.Max(-s_NUMERIC_MAX_PRECISION, lPosition);
3324ssnumTemp.AdjustScale(s_NUMERIC_MAX_PRECISION - lActualPrec, true);