Skip to content

Comment on More Intuitive Calculator Arithmetic (2018)parent

Comments

Wow, this is better than I've ever expected: Android calculator makes use of Exact Real Arithmetic running in the background (with some tweaks to cope with the inherent undecidability and an infinite list of trailing zeros). I had been fully aware of ERA but never expected to see that in a such widespread application.

This looks pretty interesting. Is there any good resource on this?

Searching for "Exact Real Arithmetic" will yield some. Specifically, a HaskellWiki page [1] is not too bad as a starting point. Or, if you are keen to academic presentations (read: presentations optimized for the maximal information density and not for the actual presentation ;-) [2] might be better.

You can also take a look at the actual source code for the Android ExactCalculator app [3]. For some reason, however, it is deprecated after Android 9.0.0; don't know why.

[1] https://wiki.haskell.org/Exact_real_arithmetic

[2] https://members.loria.fr/PZimmermann/irram18.pdf

[3] https://android.googlesource.com/platform/packages/apps/Exac...

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.