title: How do I validate precision and scale with BigDecimal?
body: <p>I'm trying to validate the precision and scale of a big decimal. </p>
  
  <p>I'm looking to validate a big decimal doesn't exceed a precision of 10 or a scale of 2. I tried doing a maxlength so the value wouldn't be violating my db length constraints, but was unable to get that working either. Could someone kindly point me in the direction to resolving this issue?</p>