#include <math.h>
double round(double x);
float roundf(float x);
long double roundl(long double x);
#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;
}
float f = 0.5;
round(f);
Code Example |
---|
C :: Multi-line Comments in C |
C :: passing pointer to function |
C :: hash function in c |
C :: calling of a void in c |
C :: logical operators |
C :: objects in oops |
C :: declare an array |
C :: exponentials in c |
C :: create syscall |
C :: C Pass Individual Array Elements |
C :: git add -u flag |
C :: how to check file pointers in c |
C :: Syntax for creating a node |
C :: print in c 11111 00000 11111 00000 11111 |
C :: remove language from jupyter notebook |
C :: delimter in c |
C :: c enums |
C :: send data to port in c |
C :: curl ftp upload file to directory |
C :: convert char to int ascii in c function |
C :: when to add & in snacf c |
C :: arcpy buffer |
C :: online code runner .c |
C :: laarvel artisan to create controller model miigration |
C :: how to compress image in c |
C :: c++ sum of ascii string |
C :: write to file in c programming |
C :: compile opencv program |
Dart :: round corner of alertdialog flutter |
Dart :: flutter keyboard overflow when opens |