Home
last modified time | relevance | path

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

/aosp_15_r20/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)),
/aosp_15_r20/external/python/cpython3/Lib/test/
Dtest_decimal.py2674 context.create_decimal_from_float(math.pi),
2679 context.create_decimal_from_float(math.pi),
2685 context.create_decimal_from_float,
2688 self.assertEqual(repr(context.create_decimal_from_float(-0.0)),
2690 self.assertEqual(repr(context.create_decimal_from_float(1.0)),
2692 self.assertEqual(repr(context.create_decimal_from_float(10)),
3942 x = c.create_decimal_from_float(7.5)
3965 x = c.create_decimal_from_float(7.5)
/aosp_15_r20/external/python/cpython3/Doc/library/
Ddecimal.rst1107 .. method:: create_decimal_from_float(f)
1117 >>> context.create_decimal_from_float(math.pi)
1120 >>> context.create_decimal_from_float(math.pi)
1665 or :meth:`~decimal.Context.create_decimal_from_float` do not set the flag.
/aosp_15_r20/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)
/aosp_15_r20/external/python/cpython2/Lib/
Ddecimal.py3939 def create_decimal_from_float(self, f): member in Context
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/lib/python3.11/
D_pydecimal.py4125 def create_decimal_from_float(self, f): member in Context
/aosp_15_r20/external/python/cpython3/Lib/
D_pydecimal.py4125 def create_decimal_from_float(self, f): member in Context
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/lib/python3.11/
D_pydecimal.py4125 def create_decimal_from_float(self, f): member in Context
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/lib/python3.11/
D_pydecimal.py4125 def create_decimal_from_float(self, f): member in Context
/aosp_15_r20/prebuilts/build-tools/common/py3-stdlib/
H A D_pydecimal.py4125 def create_decimal_from_float(self, f): member in Context
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/lib/python3.11/
D_pydecimal.py4125 def create_decimal_from_float(self, f): member in Context
/aosp_15_r20/external/python/cpython2/Misc/NEWS.d/
D2.7a1.rst4269 Added Decimal.from_float() and Context.create_decimal_from_float() to the
/aosp_15_r20/external/python/cpython3/Misc/
DHISTORY15764 - Issue #4796: Added Decimal.from_float() and Context.create_decimal_from_float()