val format : int (* number of decimal places *) -> float -> string