Fixes regression with custom precision (#364)
Merge pull request #573 from mgreter/fix/custom-precision

Fixes regression with custom precision (#364)