[Turn on line numbering]arg float, places; var place_value; if (places < 1 || places > 6) throw(~range, "Second argument must between 1 and 6."); place_value = powers_of_ten[places]; return round(float * place_value) / place_value;
// Created 02-Nov-1998 as a part of ColdCore, see: @help Credit