Float fraction digits in C

#include <stdio.h>

int main () {
    float pi;
    pi = 3.1415;

    printf("%.2f", pi);

    return 0;
}

output: 3.14