try clause in formating of numbers and floats