Use double instead of float for better precision ln (fixes bug 702817).

ln now also works for e^x, where x >= 3.

https://bugzilla.gnome.org/show_bug.cgi?id=702817