Fixes #10. Allow configuring precision.