Standard Library FunctionsMath functions ceil The ceil function rounds and returns the closest integer value to the dvalue, but that value will be no less than the dvalue itself. Call: double dresult = ceil(double dvalue);