Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Vijayqlik4171
Contributor III
Contributor III

can please explain me floor and ceil functions

floor(2.8)=returns  2

ceil(2.8)=returns  3   

i know above two scenarios

but how it calculate below scenarios?

Floor( 2,4 ): returns 0 ?

Floor( 1.1 , 1 , 0.5 )returns 0.5 ?

Ceil( 3.88 , 5 ) returns 5 ?

Ceil( 1.1 , 1 , -0.01 )returns 1.99 ?

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Yes, initially it needs a bit of explanation, I have seen that with many (including me). Have a look at the explanation given by @nagaiank  and Stefan @swuehl at this post : https://community.qlik.com/t5/QlikView-App-Dev/Doubts-in-understanding-the-ceil-and-floor-functions/...  

View solution in original post

2 Replies
MayilVahanan

Hi Vijay,

It depends on step & offset. Please refer the same in below screenshot & url.

MayilVahanan_0-1631594017266.png

 

https://help.qlik.com/en-US/sense/June2020/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/GeneralNu...

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
tresesco
MVP
MVP

Yes, initially it needs a bit of explanation, I have seen that with many (including me). Have a look at the explanation given by @nagaiank  and Stefan @swuehl at this post : https://community.qlik.com/t5/QlikView-App-Dev/Doubts-in-understanding-the-ceil-and-floor-functions/...