Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

round function in C

 #include <stdio.h>
#include <math.h>
 int main()
{
       float i=5.4, j=5.6;
       printf("round of  %f is  %f
", i, round(i));
       printf("round of  %f is  %f
", j, round(j));
       return 0;
}
Source by fresh2refresh.com #
 
PREVIOUS NEXT
Tagged: #function #C
ADD COMMENT
Topic
Name
7+5 =