- #1

momentum

- 111

- 0

Its diifcult to express my question...so, i am posting this

ceil(4.5) =?

ceil(4.1)=?

ceil(4.6)=?

ceil(4.5) =?

ceil(4.1)=?

ceil(4.6)=?

You are using an out of date browser. It may not display this or other websites correctly.

You should upgrade or use an alternative browser.

You should upgrade or use an alternative browser.

- Thread starter momentum
- Start date

- #1

momentum

- 111

- 0

Its diifcult to express my question...so, i am posting this

ceil(4.5) =?

ceil(4.1)=?

ceil(4.6)=?

ceil(4.5) =?

ceil(4.1)=?

ceil(4.6)=?

- #2

AKG

Science Advisor

Homework Helper

- 2,566

- 4

- #3

momentum

- 111

- 0

ceil(4.5)=4 // is it ok ?

ceil(4.1)=4 //is it ok ?

ceil(4.6)=5 //is it ok ?

ceil(4.1)=4 //is it ok ?

ceil(4.6)=5 //is it ok ?

- #4

Integral

Staff Emeritus

Science Advisor

Gold Member

- 7,253

- 63

Nope, read the defintion given above, then try again.momentum said:ceil(4.5)=4 // is it ok ?

ceil(4.1)=4 //is it ok ?

ceil(4.6)=5 //is it ok ?

- #5

momentum

- 111

- 0

but i see ..it does not care for .5 which we use for round-off.

- #6

Curious3141

Homework Helper

- 2,858

- 88

Yes, all 5.

- #7

momentum

- 111

- 0

thank you for the clarifcation

- #8

bomba923

- 760

- 0

Recall that

[tex]\begin{gathered}

\forall x \in \left( {a,a + 1} \right)\;{\text{where }}a \in \mathbb{Z}, \hfill \\

{\text{floor}}\left( x \right) = \left\lfloor x \right\rfloor = a \hfill \\

{\text{ceil}}\left( x \right) = \left\lceil x \right\rceil = a + 1 \hfill \\

\end{gathered} [/tex]

[tex]\forall x \in \mathbb{Z},\;\left\lfloor x \right\rfloor = \left\lceil x \right\rceil = x [/tex]

[tex]\begin{gathered}

\forall x \in \left( {a,a + 1} \right)\;{\text{where }}a \in \mathbb{Z}, \hfill \\

{\text{floor}}\left( x \right) = \left\lfloor x \right\rfloor = a \hfill \\

{\text{ceil}}\left( x \right) = \left\lceil x \right\rceil = a + 1 \hfill \\

\end{gathered} [/tex]

[tex]\forall x \in \mathbb{Z},\;\left\lfloor x \right\rfloor = \left\lceil x \right\rceil = x [/tex]

Last edited:

- #9

jim mcnamara

Mentor

- 4,688

- 3,630

floor -> "goes down" as it needs to, in order to reach an integer

What happens with negative numbers:

[tex] floor( -1.1 ) = -2 \; ceil( -1.1 ) = -1 [/tex]

[tex] floor( -0.1 ) = -1 \; ceil( -0.1 ) = 0 [/tex]

[tex] floor( 0.9 ) = 0 \; ceil( 0.9 ) = 1[/tex]

Share:

- Last Post

- Replies
- 10

- Views
- 719

- Last Post

- Replies
- 2

- Views
- 745

- Last Post

- Replies
- 2

- Views
- 397

- Last Post

- Replies
- 3

- Views
- 273

- Last Post

- Replies
- 2

- Views
- 619

- Last Post

- Replies
- 21

- Views
- 3K

- Last Post

- Replies
- 10

- Views
- 1K

- Last Post

- Replies
- 3

- Views
- 875

MHB
Ceiling Function

- Last Post

- Replies
- 0

- Views
- 410

- Replies
- 4

- Views
- 1K