Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
22dc4d5f
Commit
22dc4d5f
authored
Nov 26, 2013
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #19794: Improved markup for True/False constants.
parent
1833ac37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
Doc/library/decimal.rst
Doc/library/decimal.rst
+13
-13
No files found.
Doc/library/decimal.rst
View file @
22dc4d5f
...
...
@@ -1183,52 +1183,52 @@ In addition to the three supplied contexts, new contexts can be created with the
.. method:: is_canonical(x)
Returns
True if *x* is canonical; otherwise returns False
.
Returns
``True`` if *x* is canonical; otherwise returns ``False``
.
.. method:: is_finite(x)
Returns
True if *x* is finite; otherwise returns False
.
Returns
``True`` if *x* is finite; otherwise returns ``False``
.
.. method:: is_infinite(x)
Returns
True if *x* is infinite; otherwise returns False
.
Returns
``True`` if *x* is infinite; otherwise returns ``False``
.
.. method:: is_nan(x)
Returns
True if *x* is a qNaN or sNaN; otherwise returns False
.
Returns
``True`` if *x* is a qNaN or sNaN; otherwise returns ``False``
.
.. method:: is_normal(x)
Returns
True if *x* is a normal number; otherwise returns False
.
Returns
``True`` if *x* is a normal number; otherwise returns ``False``
.
.. method:: is_qnan(x)
Returns
True if *x* is a quiet NaN; otherwise returns False
.
Returns
``True`` if *x* is a quiet NaN; otherwise returns ``False``
.
.. method:: is_signed(x)
Returns
True if *x* is negative; otherwise returns False
.
Returns
``True`` if *x* is negative; otherwise returns ``False``
.
.. method:: is_snan(x)
Returns
True if *x* is a signaling NaN; otherwise returns False
.
Returns
``True`` if *x* is a signaling NaN; otherwise returns ``False``
.
.. method:: is_subnormal(x)
Returns
True if *x* is subnormal; otherwise returns False
.
Returns
``True`` if *x* is subnormal; otherwise returns ``False``
.
.. method:: is_zero(x)
Returns
True if *x* is a zero; otherwise returns False
.
Returns
``True`` if *x* is a zero; otherwise returns ``False``
.
.. method:: ln(x)
...
...
@@ -1390,7 +1390,7 @@ In addition to the three supplied contexts, new contexts can be created with the
.. method:: same_quantum(x, y)
Returns
True
if the two operands have the same exponent.
Returns
``True``
if the two operands have the same exponent.
.. method:: scaleb (x, y)
...
...
@@ -1452,9 +1452,9 @@ are also included in the pure Python version for compatibility.
.. data:: HAVE_THREADS
The default value is
True
. If Python is compiled without threads, the
The default value is
``True``
. If Python is compiled without threads, the
C version automatically disables the expensive thread local context
machinery. In this case, the value is
False
.
machinery. In this case, the value is
``False``
.
Rounding modes
--------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment