9951 explained code solutions for 126 technologies


cGet the round of a float number


#include <math.h>
round(x);
floor(x);
ceil(x);ctrl + c
include <math.h

Name of library to be included

round(x);

Function to get the x rounded

floor(x);

Function to get the x rounded to a lower value

ceil(x);

Function to get the x rounded to a greater value