Searched refs:create_decimal_from_float (Results 1 – 4 of 4) sorted by relevance
2701 context.create_decimal_from_float(math.pi),2706 context.create_decimal_from_float(math.pi),2712 context.create_decimal_from_float,2715 self.assertEqual(repr(context.create_decimal_from_float(-0.0)),2717 self.assertEqual(repr(context.create_decimal_from_float(1.0)),2719 self.assertEqual(repr(context.create_decimal_from_float(10)),3959 x = c.create_decimal_from_float(7.5)3982 x = c.create_decimal_from_float(7.5)
1160 .. method:: create_decimal_from_float(f)1170 >>> context.create_decimal_from_float(math.pi)1173 >>> context.create_decimal_from_float(math.pi)1718 or :meth:`~decimal.Context.create_decimal_from_float` do not set the flag.
4039 def create_decimal_from_float(self, f): member in Context
15764 - Issue #4796: Added Decimal.from_float() and Context.create_decimal_from_float()