Added a setPrecision function