diff options
author | Georg Brandl <georg@python.org> | 2007-09-04 07:15:32 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-09-04 07:15:32 (GMT) |
commit | 6911e3ce3f72af759908b869b73391ea00d328e2 (patch) | |
tree | 5d4ff6070cb3f0f46f0a31ee4805b41053a06b48 /Doc/library/decimal.rst | |
parent | c9879246a2dd33a217960496fdf4606cb117c6a6 (diff) | |
download | cpython-6911e3ce3f72af759908b869b73391ea00d328e2.zip cpython-6911e3ce3f72af759908b869b73391ea00d328e2.tar.gz cpython-6911e3ce3f72af759908b869b73391ea00d328e2.tar.bz2 |
Convert all print statements in the docs.
Diffstat (limited to 'Doc/library/decimal.rst')
-rw-r--r-- | Doc/library/decimal.rst | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst index 498c2cc..444b20a 100644 --- a/Doc/library/decimal.rst +++ b/Doc/library/decimal.rst @@ -1052,7 +1052,7 @@ to work with the :class:`Decimal` class:: def pi(): """Compute Pi to the current precision. - >>> print pi() + >>> print(pi()) 3.141592653589793238462643383 """ @@ -1071,13 +1071,13 @@ to work with the :class:`Decimal` class:: def exp(x): """Return e raised to the power of x. Result type matches input type. - >>> print exp(Decimal(1)) + >>> print(exp(Decimal(1))) 2.718281828459045235360287471 - >>> print exp(Decimal(2)) + >>> print(exp(Decimal(2))) 7.389056098930650227230427461 - >>> print exp(2.0) + >>> print(exp(2.0)) 7.38905609893 - >>> print exp(2+0j) + >>> print(exp(2+0j)) (7.38905609893+0j) """ @@ -1095,11 +1095,11 @@ to work with the :class:`Decimal` class:: def cos(x): """Return the cosine of x as measured in radians. - >>> print cos(Decimal('0.5')) + >>> print(cos(Decimal('0.5'))) 0.8775825618903727161162815826 - >>> print cos(0.5) + >>> print(cos(0.5)) 0.87758256189 - >>> print cos(0.5+0j) + >>> print(cos(0.5+0j)) (0.87758256189+0j) """ @@ -1118,11 +1118,11 @@ to work with the :class:`Decimal` class:: def sin(x): """Return the sine of x as measured in radians. - >>> print sin(Decimal('0.5')) + >>> print(sin(Decimal('0.5'))) 0.4794255386042030002732879352 - >>> print sin(0.5) + >>> print(sin(0.5)) 0.479425538604 - >>> print sin(0.5+0j) + >>> print(sin(0.5+0j)) (0.479425538604+0j) """ |