The Python Oracle

Function to determine if two numbers are nearly equal when rounded to n significant decimal digits

This video explains
Function to determine if two numbers are nearly equal when rounded to n significant decimal digits

--

Become part of the top 3% of the developers by applying to Toptal
https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Lost Civilization

--

Chapters
00:00 Question
02:16 Accepted answer (Score 31)
02:43 Answer 2 (Score 136)
03:20 Answer 3 (Score 8)
03:33 Answer 4 (Score 7)
04:56 Thank you

--

Full question
https://stackoverflow.com/questions/5582...

Accepted answer links:
[here) ]: https://github.com/numpy/numpy/blob/1225...

Answer 2 links:
[math.isclose]: https://docs.python.org/3/library/math.h...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #math #floatingpoint #numpy

#avk47