C++ Math ceil()
It rounds the value to the nearest integer which is not less than the given value.
For example :
Suppose a number is 'x'. Syntax would be:
x : It is the value that rounds to the nearest integer.
It returns the smallest integer value not less than x.
Let's see a simple example by considering the positive value of x.
Initial value of x is :9.2 final value of x is :10
Let's see a simple example by considering the negative value of x.
Initial value of x is :-2.2 final value of x is :-2
Next TopicC++ Math Functions
JavaTpoint offers too many high quality services. Mail us on h[email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week