Increase the precision of the double output and trim the trailing zeros