Knowledge Walls
Venkatesan
Hyderabad, Andhra Pradesh, India
Passcode:
ceil(x as float) in Math Library Functions of Programming in CPP
2124 Views
Usage 
Ceil function is used to return smallest integer value which is less than x value.
Syntax 
Ceil(number);
Example
#include <stdio.h>     
#include <math.h>      
int main ()
{
  printf ( "ceil of 5.9 is ", ceil(5.9) );
  printf ( "ceil of -7.3 is ", ceil(-7.3) );
  return 0;
}
Output 
ceil of 5.9 is 6
ceil of -7.3 is 7
Next Topics
Next lessons of current book.
Math Library Functions of Programming in CPP
Math Library Functions of Programming in CPP
Math Library Functions of Programming in CPP
Math Library Functions of Programming in CPP
Math Library Functions of Programming in CPP
Previous Topics
Previous lessons of current book.
User-defined Functions of Programming in CPP
User-defined Functions of Programming in CPP
User-defined Functions of Programming in CPP
User-defined Functions of Programming in CPP
Best Lessons of "Programming in CPP"
Top lessons which are viewed more times.
String Class in CPP of Programming in CPP
Math Library Functions of Programming in CPP
String Class in CPP of Programming in CPP
Classes and Objects in CPP of Programming in CPP
User-defined Functions of Programming in CPP
Math Library Functions of Programming in CPP
String Class in CPP of Programming in CPP
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details