public/javascripts/inputex/build/inputex.js
function() { 
      
      var v = this.getValue(), str_value = inputEx.NumberField.superclass.getValue.call(this);
      
      // empty field
      if (v === '') {
         // validate only if not required
         return !this.options.required;
      }
      
      if (isNaN(v)) {
         return false;
      }
      
      // We have to check the number with a regexp, otherwise "0.03a" is parsed to a valid number 0.03
      return !!str_value.match(/^([\+\-]?((([0-9]+(\.)?)|([0-9]*\.[0-9]+))([eE][+-]?[0-9]+)?))$/) && v >= this.options.min && v <= this.options.max;
      
   }
function() { 
      
      var v = this.getValue(), str_value = inputEx.NumberField.superclass.getValue.call(this);
      
      // empty field
      if (v === '') {
         // validate only if not required
         return !this.options.required;
      }
      
      if (isNaN(v)) {
         return false;
      }
      
      // We have to check the number with a regexp, otherwise "0.03a" is parsed to a valid number 0.03
      return !!str_value.match(/^([\+\-]?((([0-9]+(\.)?)|([0-9]*\.[0-9]+))([eE][+-]?[0-9]+)?))$/) && v >= this.options.min && v <= this.options.max;
      
   }
function ( ) { var v = this . getValue ( ) , str_value = inputEx . NumberField . superclass . getValue . call ( this ) ; // empty field if ( v === '' ) { // validate only if not required return ! this . options . required ; } if ( isNaN ( v ) ) { return false ; } // We have to check the number with a regexp, otherwise "0.03a" is parsed to a valid number 0.03 return ! ! str_value . match ( / ^([\+\-]?((([0-9]+(\.)?)|([0-9]*\.[0-9]+))([eE][+-]?[0-9]+)?))$ / ) && v >= this . options . min && v <= this . options . max ; }
Check if the entered number is a float
Check if the entered number is a float