FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[Original HTTPS Page]
Misc improvements to the float tutorial by rhettinger · Pull Request #102052 · python/cpython · GitHub
python
cpython
Repository navigation
Code
Issues
5k+
(5k+)
Pull requests
2.6k
(2.6k)
Actions
Projects
Security and quality
Insights
Misc improvements to the float tutorial
- #102052
#102052
Merged
rhettinger
merged 10 commits into
python:main
python/cpython:main
from
rhettinger:float_tutorial_improvements
rhettinger/cpython:float_tutorial_improvements
Copy head branch name to clipboard
Feb 19, 2023
Conversation
Commits
10
(10)
Checks
Files changed
Merged
Misc improvements to the float tutorial
#102052
rhettinger
merged 10 commits into
python:main
python/cpython:main
from
rhettinger:float_tutorial_improvements
rhettinger/cpython:float_tutorial_improvements
Copy head branch name to clipboard
Commits
Commits on Feb 19, 2023
Example is more intelligible without the leading zeros
rhettinger
committed
1e2ec34
View commit details
Copy full SHA for 1e2ec34
Browse repository at this point
Leading zeros are easier to read and match the surrounding text.
rhettinger
committed
082d7a8
View commit details
Copy full SHA for 082d7a8
Browse repository at this point
Compare sum() to straight addition and to math.fsum()
rhettinger
committed
2ff520d
View commit details
Copy full SHA for 2ff520d
Browse repository at this point
Show math.isclose() for comparing inexact values
rhettinger
committed
22e1a96
View commit details
Copy full SHA for 22e1a96
Browse repository at this point
Add doctests throughout
rhettinger
committed
cb1f78a
View commit details
Copy full SHA for cb1f78a
Browse repository at this point
Add a more useful example of round() for comparisons
rhettinger
committed
e9e959a
View commit details
Copy full SHA for e9e959a
Browse repository at this point
Shorter example
rhettinger
committed
8f02dc5
View commit details
Copy full SHA for 8f02dc5
Browse repository at this point
Fix doctests: Missing import and counterfactual example.
rhettinger
committed
d8bcc4c
View commit details
Copy full SHA for d8bcc4c
Browse repository at this point
Compare sum() and fsum() with straight addition
rhettinger
committed
cd8abc5
View commit details
Copy full SHA for cd8abc5
Browse repository at this point
Add section author
rhettinger
committed
d6a6b6b
View commit details
Copy full SHA for d6a6b6b
Browse repository at this point
Back
|
FazBrowse Home
|
New Git URL