code: def getFloat(t):
      
      d = c_double()
      if PL_get_float(t, byref(d)):
          return d.value
      else:
          raise InvalidTypeError("float")
docs: If t is of type float, return it, otherwise raise InvalidTypeError.