def unwrapFloat(self, tlv):
     if isinstance(tlv, TLVAmqp):
         code = tlv.getCode()
         if code != AMQPType.FLOAT:
             raise ValueError('Error trying to parse FLOAT: received ' +
                              str(tlv.getCode()))
         return util.getFloat(tlv.getValue())
 def getFloat(self):
     return util.getFloat(self.value)