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
eecd1dc6
Commit
eecd1dc6
authored
Mar 10, 2009
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify the meaning of normal and subnormal.
parent
f345a21d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
Doc/library/decimal.rst
Doc/library/decimal.rst
+7
-3
No files found.
Doc/library/decimal.rst
View file @
eecd1dc6
...
...
@@ -548,8 +548,11 @@ Decimal objects
.. method:: is_normal()
Return :const:`True` if the argument is a *normal* finite number. Return
:const:`False` if the argument is zero, subnormal, infinite or a NaN.
Return :const:`True` if the argument is a *normal* finite non-zero
number with an adjusted exponent greater than or equal to *Emin*.
Return :const:`False` if the argument is zero, subnormal, infinite or a
NaN. Note, the term *normal* is used here in a different sense with
the :meth:`normalize` method which is used to create canonical values.
.. versionadded:: 2.6
...
...
@@ -577,7 +580,8 @@ Decimal objects
.. method:: is_subnormal()
Return :const:`True` if the argument is subnormal, and :const:`False`
otherwise.
otherwise. A number is subnormal is if it is nonzero, finite, and has an
adjusted exponent less than *Emin*.
.. versionadded:: 2.6
...
...
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