how to print a double with 2 digits in c code example Example: print double with 2 decimals c printf("%.2f", number);