format specifier %.f indicates default precision
added test case for formatter