def read_element_float(stream, size):
 if (size == 4):
  return unpack('>f', _read(stream, 4))[0]
 elif (size == 8):
  return unpack('>d', _read(stream, 8))[0]
 else:
  raise SizeError(size)

def read_element_float ( stream , size ) : if ( size == 4 ) : return unpack ( '>f' , _read ( stream , 4 ) ) [ 0 ] elif ( size == 8 ) : return unpack ( '>d' , _read ( stream , 8 ) ) [ 0 ] else : raise SizeError ( size )
read the element data of type :data:float .