class_docstr: Converter for decimal.Decimal data to float.
class_docstr_tok: ["Converter","for","decimal.Decimal","data","to","float","."]
docstr: Convert Decimals to floats.
  
  The *unit* and *axis* arguments are not used.
  
  Parameters
  ----------
  value : decimal.Decimal or iterable
      Decimal or list of Decimal need to be converted
docstr_tok: ["Convert","Decimals","to","floats",".","The","*","unit","*","and","*","axis","*","arguments","are","not","used",".","Parameters","--","--","--","--","--","value",":","decimal.Decimal","or","iterable","Decimal","or","list","of","Decimal","need","to","be","converted"]
code: def convert(value, unit, axis):
      """
      Convert Decimals to floats.
  
      The *unit* and *axis* arguments are not used.
  
      Parameters
      ----------
      value : decimal.Decimal or iterable
          Decimal or list of Decimal need to be converted
      """
      if isinstance(value, Decimal):
          return float(value)
      # value is Iterable[Decimal]
      elif isinstance(value, ma.MaskedArray):
          return ma.asarray(value, dtype=float)
      else:
          return np.asarray(value, dtype=float)
  
file_path: matplotlib/lib/matplotlib/units.py
imports: from decimal import Decimal
  from numbers import Number
  import numpy
  from numpy import ma
  from matplotlib import cbook
label_desc: Use image node_id 1 for calling the DecimalConverter obj's underlying member method code with example usage: obj.convert(value, unit, axis) and returns: float, ma, np