i'm just starting to learn C and i have a problem with displaying fractions.
insertWhen i run this, the ouput is:Code:
float num = 2/3;
How do i get it to output .666666??
Also, how would i get the output to display correct to 6 decimal places?