A wilson <afw2a...@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....@roundup.psfhosted.org <report=bugs.python....@roundup.psfhosted.org> on behalf of Eric V. Smith <rep...@bugs.python.org> Sent: Friday, 13 August 2021, 21:52 To: afw2a...@outlook.com Subject: [issue44910] Floating point issue Eric V. Smith <e...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue44910> _______________________________________ ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44910> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com