format specifiers in c for double with decimal places code example Example: double data type format in c %lf you can try