C# Check if a decimal has more than 3 decimal places?

You could compare the value of the number rounded to 3 decimal places with the original value.

if (Decimal.Round(valueDecimal, 3) != valueDecimal)
{
   //Too many decimals
}

Leave a Comment