Home
last modified time | relevance | path

Searched refs:create_decimal_from_float (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_decimal.py2701 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)
/external/python/cpython3/Doc/library/
Ddecimal.rst1160 .. 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.
/external/python/cpython3/Lib/
D_pydecimal.py4039 def create_decimal_from_float(self, f): member in Context
/external/python/cpython3/Misc/
DHISTORY15764 - Issue #4796: Added Decimal.from_float() and Context.create_decimal_from_float()