I need to return a value float with 1 decimal place, however it is returning with the value rounded.
I have the following code:
float n1 = 4;
float n2 = 9;
float total = n2 / n1 ;
printf("Media: %.1f ", total ); //aqui, o resultado é 2....
asked on
23.05.2014 / 20:21