Question regarding floor example

@Steve I was reading the information regarding the FLOOR expression

Examples

FLOOR(3.14) : 3

FLOOR(-3.14) : -4

FLOOR(5) : 5

Is the second one right? Should it not be -3?

Return Value

Floor(x)

Number : The nearest integer less than or equal to x .

No, This is how FLOOR() expression is going to return the vaue

3 Likes

Thanks for answering. I thought FLOOR would choose the lowest of the two integers displayed. But in the example the result is lower than the number displayed. So maybe I have misunderstood the Function of this expression. How does it arrive at -4?

4 Likes

Thank you, I get it now

2 Likes