08.01.2015, 19:17
Let the compiler know that you want float result, by setting at least one constant to float:
(the precision format (.2 part) is not required for this to work)
pawn Код:
printf("%.2f", 2.0 / 10);