how to make a decimal have only 2 decimal places in c\ code example Example: print double with 2 decimals c printf("%.2f", number);