In this C programming language video tutorial / lecture for beginners video series, you will learn how to use the ceil(), floor() and round() functions in detail with example.

The ceil function is used to get the smallest integer not less than the number passed as a argument to this function, floor function is used to get the largest integer not greater than the number passed as the argument and also it is used to get the nearest integer to a number passes to it as the argument along with their syntax.

Visit for more free computer programming video tutorials.

Learn Programming in HINDI at our youtube channel

Catch us on Social Media

Nguồn: https://madisonrep.org

Xem thêm bài viết khác: https://madisonrep.org/cong-nghe

11 Comments

ahmed momen

April 25, 2020

thank ypu

Reply

ŘÂÑJÏŤ PRASAD

April 25, 2020

it does helped me a lot thank you brother.

Reply

Valerio Guagnelli Scanzani

April 25, 2020

clear but what if you ceil(variable), where variable is float? what decimal is going to be ceiled?
I have A=3,45678
I need to get 2 decimals rounded to 0,05 without truncation but ceiling. I can we get it?
i.e. 3,44 must be 3,45; 3,41 must be 3,45 end so on…

Reply

ZAID AMEEN

April 25, 2020

Syntax for ceil()

Reply

Fahad Anwar

April 25, 2020

Thanks for the video.

Reply

Dawnten Bass

April 25, 2020

thanks man!

Reply

Bishal Borchetia

April 25, 2020

thnks a lot

Reply

Serjeel Ranjan

April 25, 2020

it helped😊

Reply

Blaz3ofglory

April 25, 2020

Thanks man 🙂

Reply

JVJplus

April 25, 2020

How to accept 10 numbers and arrange in ascending/­descending order without using arrays….

Reply

JVJplus

April 25, 2020

What if the no is in negative like – 6. 8

Reply

Leave a Reply