Update output precision. Verified against matlab