def _gp_float(tok):
 try:
  return float(tok)
 except ValueError:
  return str(tok)

def _gp_float ( tok ) : try : return float ( tok ) except ValueError : return str ( tok )
gets a float from a token .