code: def isFloat(nstr, schema):
      
      if isinstance(nstr, (float, int, long)):
          return True
      elif not isinstance(nstr, basestring):
          return False
  
      try:
          float(nstr)
      except ValueError:
          return False
  
      return True
docs: !~~isFloat