Home
last modified time | relevance | path

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

/external/python/cpython2/Lib/test/
Dtest_decimal.py1748 context.create_decimal_from_float(math.pi),
1753 context.create_decimal_from_float(math.pi),
1759 context.create_decimal_from_float,
1762 self.assertEqual(repr(context.create_decimal_from_float(-0.0)),
1764 self.assertEqual(repr(context.create_decimal_from_float(1.0)),
1766 self.assertEqual(repr(context.create_decimal_from_float(10)),
/external/python/cpython2/Doc/library/
Ddecimal.rst1112 .. method:: create_decimal_from_float(f)
1122 >>> context.create_decimal_from_float(math.pi)
1125 >>> context.create_decimal_from_float(math.pi)
/external/python/cpython2/Lib/
Ddecimal.py3939 def create_decimal_from_float(self, f): member in Context
/external/python/cpython2/Misc/
DNEWS8574 Context.create_decimal_from_float() to the decimal module.