Float to int if the num has no numbers behind decimal point in C

Viewed 109

how am I supposed to print a float so as if it has no numbers behind decimal point e.g. 11.00 should be printed as 11 but 11.45 should stay the same. The problem is some if statement maybe. Any suggestions?

2 Answers
Related