parameters: (self)
return_statement: return float(self.data.item())
docstring: Convert self to float.
docstring_summary: Convert self to float.
docstring_tokens: Convert self to float .
function: def __float__(self):
          "Convert self to float."
          self.unmask()
          if self._mask is not nomask:
              raise MAError('Cannot convert masked element to a Python float.')
          return float(self.data.item())
function_tokens: def __float__ ( self ) : self . unmask ( ) if self . _mask is not nomask : raise MAError ( 'Cannot convert masked element to a Python float.' ) return float ( self . data . item ( ) )