Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
python
cpython
Repository navigation
Code
Issues
5k+
(5k+)
Pull requests
2.7k
(2.7k)
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Doc
tutorial
floatingpoint.rst
on
main
User selector
All users
Datepicker
All time
Commit history
Commits on Feb 19, 2026
Docs: remove unneeded author attributions (#145002)
Show description for 852ec18
nedbat
authored
852ec18
View commit details
Copy full SHA for 852ec18
View code at this point
Browse repository at this point
Commits on Aug 30, 2024
gh-123492: Remove unnecessary `:func:` parentheses (#123493)
mattwang44
authored
103a047
View commit details
Copy full SHA for 103a047
View code at this point
Browse repository at this point
Commits on Jul 19, 2024
gh-121905: Consistently use "floating-point" instead of "floating point" (GH-121907)
serhiy-storchaka
authored
1a0c7b9
View commit details
Copy full SHA for 1a0c7b9
View code at this point
Browse repository at this point
Commits on Dec 3, 2023
Fix link to 'The Perils of Floating Point', on the tutorial (GH-112499)
Show description for c27b09c
aureliobarbosa
authored
c27b09c
View commit details
Copy full SHA for c27b09c
View code at this point
Browse repository at this point
Commits on Oct 8, 2023
Update floatingpoint.rst (#110509)
Show description for 8e56d55
zipperer
authored
8e56d55
View commit details
Copy full SHA for 8e56d55
View code at this point
Browse repository at this point
Commits on May 26, 2023
gh-104479: Update outdated tutorial floating-point reference (#104681)
mdickinson
authored
2cf04e4
View commit details
Copy full SHA for 2cf04e4
View code at this point
Browse repository at this point
Commits on Feb 19, 2023
Misc improvements to the float tutorial (GH-102052)
rhettinger
authored
3b264df
View commit details
Copy full SHA for 3b264df
View code at this point
Browse repository at this point
Commits on Dec 23, 2022
GH-100425: Improve accuracy of builtin sum() for float inputs (GH-100426)
rhettinger
authored
5d84966
View commit details
Copy full SHA for 5d84966
View code at this point
Browse repository at this point
Commits on Feb 6, 2022
[doc] Enhance readability by avoiding big blocks for small numbers. (GH-31157)
Show description for fa90e48
JulienPalard
authored
fa90e48
View commit details
Copy full SHA for fa90e48
View code at this point
Browse repository at this point
Commits on Dec 2, 2021
bpo-45916: Use HTTPS link for The Perils of Floating Point (GH-29896)
zware
authored
9f2f7e4
View commit details
Copy full SHA for 9f2f7e4
View code at this point
Browse repository at this point
Commits on Oct 1, 2020
[doc] Update references to NumPy (GH-22458)
Show description for c8bb241
andresdelfino
authored
c8bb241
View commit details
Copy full SHA for c8bb241
View code at this point
Browse repository at this point
Commits on Aug 9, 2016
Issue #27206: Fix doctests in Doc/tutorial.
Show description for c483a01
zware
committed
c483a01
View commit details
Copy full SHA for c483a01
View code at this point
Browse repository at this point
Commits on May 7, 2016
Issue #26736: Used HTTPS for external links in the documentation if possible.
serhiy-storchaka
committed
6dff020
View commit details
Copy full SHA for 6dff020
View code at this point
Browse repository at this point
Commits on Oct 19, 2011
Remove duplication.
ezio-melotti
committed
e130a52
View commit details
Copy full SHA for e130a52
View code at this point
Browse repository at this point
Commits on Aug 4, 2010
Issue #9337: Make float.__str__ identical to float.__repr__.
Show description for 388122d
mdickinson
committed
388122d
View commit details
Copy full SHA for 388122d
View code at this point
Browse repository at this point
Commits on Jul 29, 2010
Fix typo.
mdickinson
committed
6a74d34
View commit details
Copy full SHA for 6a74d34
View code at this point
Browse repository at this point
Commits on Jun 28, 2009
Clean-up floating point tutorial.
rhettinger
committed
1d18068
View commit details
Copy full SHA for 1d18068
View code at this point
Browse repository at this point
Small doc fix-ups to floatingpoint.rst. More are forthcoming.
rhettinger
committed
eafaf4c
View commit details
Copy full SHA for eafaf4c
View code at this point
Browse repository at this point
Commits on Apr 26, 2009
Add link to math.fsum().
rhettinger
committed
5afb5c6
View commit details
Copy full SHA for 5afb5c6
View code at this point
Browse repository at this point
Improve the rounding and summing examples.
rhettinger
committed
4af3629
View commit details
Copy full SHA for 4af3629
View code at this point
Browse repository at this point
Remove the round() discussion which is now out-of-date.
rhettinger
committed
f0320c7
View commit details
Copy full SHA for f0320c7
View code at this point
Browse repository at this point
Commits on Apr 24, 2009
Remove leftover word.
birkenfeld
committed
b58f46f
View commit details
Copy full SHA for b58f46f
View code at this point
Browse repository at this point
Update for the new float.__repr__()
rhettinger
committed
8bd1d4f
View commit details
Copy full SHA for 8bd1d4f
View code at this point
Browse repository at this point
Commits on Feb 21, 2009
Merged revisions 69846 via svnmerge from
Show description for 934896d
mdickinson
committed
934896d
View commit details
Copy full SHA for 934896d
View code at this point
Browse repository at this point
Commits on Feb 6, 2009
Merged revisions 69129-69131,69139-69140,69143,69154-69159,69169,69288-69289,69293,69297-69301,69348 via svnmerge from
Show description for 5c6d787
benjaminp
committed
5c6d787
View commit details
Copy full SHA for 5c6d787
View code at this point
Browse repository at this point
Commits on Oct 5, 2008
Issue 3412: Mention fractions and decimal in the tutorial section on floating point.
rhettinger
committed
eba99df
View commit details
Copy full SHA for eba99df
View code at this point
Browse repository at this point
Issue 3288: document as_integer_ratio(), fromhex(), and hex().
rhettinger
committed
9fce0ba
View commit details
Copy full SHA for 9fce0ba
View code at this point
Browse repository at this point
Commits on Aug 10, 2008
Remove long integer output.
birkenfeld
committed
bae1b94
View commit details
Copy full SHA for bae1b94
View code at this point
Browse repository at this point
Commits on May 26, 2008
Merged revisions 63655 via svnmerge from
Show description for e6f0063
benjaminp
committed
e6f0063
View commit details
Copy full SHA for e6f0063
View code at this point
Browse repository at this point
Commits on Sep 4, 2007
Convert all print statements in the docs.
birkenfeld
committed
6911e3c
View commit details
Copy full SHA for 6911e3c
View code at this point
Browse repository at this point
Commits on Aug 31, 2007
Tutorial update for 3.0 by Paul Dubois.
Show description for 0616b79
gvanrossum
committed
0616b79
View commit details
Copy full SHA for 0616b79
View code at this point
Browse repository at this point
Commits on Aug 15, 2007
Move the 3k reST doc tree in place.
birkenfeld
committed
116aa62
View commit details
Copy full SHA for 116aa62
View code at this point
Browse repository at this point
Loading
You can’t perform that action at this time.