set precision when wirting results