parameters: (self, f)
return_statement: return d._fix(self)
docstring: Creates a new Decimal instance from a float but rounding using self
          as the context.
  
          >>> context = Context(prec=5, rounding=ROUND_DOWN)
          >>> context.create_decimal_from_float(3.1415926535897932)
          Decimal('3.1415')
          >>> context = Context(prec=5, traps=[Inexact])
          >>> context.create_decimal_from_float(3.1415926535897932)
          Traceback (most recent call last):
              ...
          Inexact: None
docstring_summary: Creates a new Decimal instance from a float but rounding using self
          as the context.
docstring_tokens: Creates a new Decimal instance from a float but rounding using self as the context .
function: def create_decimal_from_float(self, f):
          """Creates a new Decimal instance from a float but rounding using self
          as the context.
  
          >>> context = Context(prec=5, rounding=ROUND_DOWN)
          >>> context.create_decimal_from_float(3.1415926535897932)
          Decimal('3.1415')
          >>> context = Context(prec=5, traps=[Inexact])
          >>> context.create_decimal_from_float(3.1415926535897932)
          Traceback (most recent call last):
              ...
          Inexact: None
  
          """
          d = Decimal.from_float(f)       # An exact conversion
          return d._fix(self)
function_tokens: def create_decimal_from_float ( self , f ) : d = Decimal . from_float ( f ) # An exact conversion return d . _fix ( self )