printf %f with only 2 numbers after the decimal point? March 7, 2023 by Tarik Use this: printf ("%.2f", 3.14159);