c truncate double to 2 decimal places code example Example: print double with 2 decimals c printf("%.2f", number);