Regarding floating-point surprises with 0.1... To read more on this topic, one can read the chapter "Floating-point numbers" in the book
- Paul Zimmermann et al. Computational Mathematics with SageMath http://sagebook.gforge.inria.fr/english.html Another famous source is: - David Goldberg. What every computer scientist should know about floating-point arithmetic. - 1991 original http://cr.yp.to/2005-590/goldberg.pdf - 2004 edited reprint http://cr.yp.to/2005-590/goldberg.pdf Many variations now exist: - What every programmer should know about floating-point arithmetic or "Why don’t my numbers add up?" https://floating-point-gui.de - What every agent-based modeller should not (ideally) have to know about floating point arithmetic https://dl.acm.org/doi/10.1016/j.envsoft.2004.10.011 - What every javascript developer should know about floating points https://modernweb.com/what-every-javascript-developer-should-know-about-floating-points/ - What every programmer should know about floating-point arithmetic https://www.phys.uconn.edu/~rozman/Courses/P2200_15F/downloads/floating-point-guide-2015-10-15.pdf - Floating point demystified, part 1 https://blog.reverberate.org/2014/09/what-every-computer-programmer-should.html - Floating point demystified, part 2 https://blog.reverberate.org/2016/02/06/floating-point-demystified-part2.html - What every embedded programmer should know about ... floating point numbers https://www.microforum.cc/blogs/entry/1-floating-point-numbers/ Somewhat related: - Florian Loitsch. Printing floating-point numbers quickly and accurately with integers https://www.cs.tufts.edu/~nr/cs257/archive/florian-loitsch/printf.pdf - Marc Andrysco, Ranjit Jhala, Sorin Lerner. Printing floating-point numbers --- an always correct method. http://cseweb.ucsd.edu/~lerner/papers/fp-printing-popl16.pdf Some videos: - Abishalini Sivaraman. Decimal to IEEE 754 floating point representation. https://www.youtube.com/watch?v=8afbTaA-gOQ - Floating Point Numbers - Computerphile https://www.youtube.com/watch?v=PZRI1IfStY0 Samuel -- You received this message because you are subscribed to the Google Groups "mpir-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to mpir-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mpir-devel/deddc714-41dc-4e55-8a5c-7b68f4205b13o%40googlegroups.com.