This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author afw2alan
Recipients afw2alan, eric.smith
Date 2021-08-13.21:18:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <DB6PR0501MB2424A25A1FA528F1AC4908129CFA9@DB6PR0501MB2424.eurprd05.prod.outlook.com>
In-reply-to <1628887951.08.0.260748437379.issue44910@roundup.psfhosted.org>
Content
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@roundup.psfhosted.org <report=bugs.python.org@roundup.psfhosted.org> on behalf of Eric V. Smith <report@bugs.python.org>
Sent: Friday, 13 August 2021, 21:52
To: afw2alan@outlook.com
Subject: [issue44910] Floating point issue

Eric V. Smith <eric@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@bugs.python.org>
<https://bugs.python.org/issue44910>
_______________________________________
History
Date User Action Args
2021-08-13 21:18:38afw2alansetrecipients: + afw2alan, eric.smith
2021-08-13 21:18:38afw2alanlinkissue44910 messages
2021-08-13 21:18:38afw2alancreate