control_decimalplaces

Updated to allow control of the number of decimal places. In a future
version this could be changed so that the correct number of significant
digits is returned