src/browser/schemaValidator.js
function validateNumber(node, schema, key) {
    if (isNaN(parseFloat(node)) || !isFinite(node)) {
      throw new ValidationException("Expected number for " + key);
    }
    if (schema[SCHEMAREGEX]) {
      checkRegex(node, schema, key);
    }
  }
function validateNumber(node, schema, key) {
    if (isNaN(parseFloat(node)) || !isFinite(node)) {
      throw new ValidationException("Expected number for " + key);
    }
    if (schema[SCHEMAREGEX]) {
      checkRegex(node, schema, key);
    }
  }
function validateNumber ( node , schema , key ) { if ( isNaN ( parseFloat ( node ) ) || ! isFinite ( node ) ) { throw new ValidationException ( "Expected number for " + key ) ; } if ( schema [ SCHEMAREGEX ] ) { checkRegex ( node , schema , key ) ; } }
Validate a number node
@param  {[type]} node   [description]
@param  {[type]} schema [description]
@param  {[type]} key    [description]
@return {[type]}        [description]
Validate a number node