src/core/validators/digitsValidator.js
function (value, constraint) {

        if (valdrUtil.isEmpty(value)) {
          return true;
        }
        if (valdrUtil.isNaN(Number(value))) {
          return false;
        }

        return doValidate(value, constraint);
      }
function (value, constraint) {

        if (valdrUtil.isEmpty(value)) {
          return true;
        }
        if (valdrUtil.isNaN(Number(value))) {
          return false;
        }

        return doValidate(value, constraint);
      }
function ( value , constraint ) { if ( valdrUtil . isEmpty ( value ) ) { return true ; } if ( valdrUtil . isNaN ( Number ( value ) ) ) { return false ; } return doValidate ( value , constraint ) ; }
Checks if the value is a number within accepted range.

@param value the value to validate
@param constraint the validation constraint, it is expected to have integer and fraction properties (maximum
number of integral/fractional digits accepted for this number)
@returns {boolean} true if valid
Checks if the value is a number within accepted range .