The Python Oracle

Decompose a float into mantissa and exponent in base 10 without strings

This video explains
Decompose a float into mantissa and exponent in base 10 without strings

--

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: Life in a Drop

--

Chapters
00:00 Question
01:06 Accepted answer (Score 21)
02:18 Answer 2 (Score 10)
02:34 Thank you

--

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

Accepted answer links:
[floating point numbers are stored as base 2 fractions]: https://docs.python.org/2/tutorial/float...
[they are always rounded when serialized using a hard-coded precision of 17]: https://github.com/python/cpython/blob/m...

--

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

--

Tags
#python

#avk47