Check out example codes for "print double in c". It will help you in understanding the concepts better.

Code Example 1

#include<stdio.h>

int main()
{
    double d = 123.32445;

    //using %f format specifier
    printf("Value of d = %f\n",d);

    //using %lf format specifier
    printf("Value of d = %lf\n",d);

    return 0;
}

Learn ReactJs, React Native from akashmittal.com