Use new resource string in MathF.Round
<data name="ArgumentOutOfRange_RoundingDigits" xml:space="preserve">
<value>Rounding digits must be between 0 and 15, inclusive.</value>
</data>
+ <data name="ArgumentOutOfRange_RoundingDigits_MathF" xml:space="preserve">
+ <value>Rounding digits must be between 0 and 6, inclusive.</value>
+ </data>
<data name="ArgumentOutOfRange_SmallCapacity" xml:space="preserve">
<value>capacity was less than the current size.</value>
</data>
{
if ((digits < 0) || (digits > maxRoundingDigits))
{
- throw new ArgumentOutOfRangeException(nameof(digits), SR.ArgumentOutOfRange_RoundingDigits);
+ throw new ArgumentOutOfRangeException(nameof(digits), SR.ArgumentOutOfRange_RoundingDigits_MathF);
}
if (mode < MidpointRounding.ToEven || mode > MidpointRounding.ToPositiveInfinity)