[issue44910] Floating point issue
A wilson
report at bugs.python.org
Fri Aug 13 17:18:38 EDT 2021
A wilson <afw2alan at outlook.com> added the comment:
Eric,
I was unaware of this document and its implementation in python.
where
0.01+0.15 = 0.16 but 0.01+273.15=273.15999999999997
the latter which should be 273.16 which is triple point temperature of water in Kelvin.
This floating point variance explains some if the conditional test failures I have encountered.
regards
Alan
Get Outlook for Android<https://aka.ms/ghei36>
________________________________
From: report=bugs.python.org at roundup.psfhosted.org <report=bugs.python.org at roundup.psfhosted.org> on behalf of Eric V. Smith <report at bugs.python.org>
Sent: Friday, 13 August 2021, 21:52
To: afw2alan at outlook.com
Subject: [issue44910] Floating point issue
Eric V. Smith <eric at trueblade.com> added the comment:
This a limitation of the floating point type that python uses. See https://docs.python.org/3/tutorial/floatingpoint.html
----------
nosy: +eric.smith
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44910>
_______________________________________
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44910>
_______________________________________
More information about the Python-bugs-list
mailing list