def _literal_float(f):
 pat = '[-+]?((\\d*\\.\\d+)|(\\d+\\.?))(eE[-+]?\\d+)?'
 return bool(regex.match(pat, f))

def _literal_float ( f ) : pat = '[-+]?((\\d*\\.\\d+)|(\\d+\\.?))(eE[-+]?\\d+)?' return bool ( regex . match ( pat , f ) )
return true if n can be interpreted as a floating point number .